]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Updated database.sql and messages.po
[friendica.git] / static / dbstructure.config.php
index df5115dcb41c09d114e7f3775b921ede1bacd3a7..aedb4446674b99ffb9671a2796f49c151667d6f7 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1478);
+       define('DB_UPDATE_VERSION', 1481);
 }
 
 return [
@@ -198,12 +198,14 @@ return [
                        "poll" => ["type" => "varchar(255)", "comment" => ""],
                        "subscribe" => ["type" => "varchar(255)", "comment" => ""],
                        "last-update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last try to update the contact info"],
+                       "next-update" => ["type" => "datetime", "comment" => "Next connection request"],
                        "success_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last successful contact update"],
                        "failure_update" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last failed update"],
                        "failed" => ["type" => "boolean", "comment" => "Connection failed"],
                        "term-date" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
                        "last-item" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last post"],
                        "last-discovery" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "date of the last follower discovery"],
+                       "local-data" => ["type" => "boolean", "comment" => "Is true when there are posts with this contact on the system"],
                        "blocked" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "Node-wide block status"],
                        "block_reason" => ["type" => "text", "comment" => "Node-wide block reason"],
                        "readonly" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "posts of the contact are readonly"],
@@ -275,12 +277,14 @@ return [
                        "attag_uid" => ["attag(96)", "uid"],
                        "network_uid_lastupdate" => ["network", "uid", "last-update"],
                        "uid_network_self_lastupdate" => ["uid", "network", "self", "last-update"],
+                       "next-update" => ["next-update"],
+                       "local-data-next-update" => ["local-data", "next-update"],
                        "uid_lastitem" => ["uid", "last-item"],
                        "baseurl" => ["baseurl(64)"],
                        "uid_contact-type" => ["uid", "contact-type"],
                        "uid_self_contact-type" => ["uid", "self", "contact-type"],
                        "self_network_uid" => ["self", "network", "uid"],
-                       "gsid" => ["gsid"],
+                       "gsid_uid_failed" => ["gsid", "uid", "failed"],
                        "uri-id" => ["uri-id"],
                ]
        ],
@@ -967,6 +971,7 @@ return [
                        "target-uri-id" => ["target-uri-id"],
                        "parent-uri-id" => ["parent-uri-id"],
                        "seen_uid" => ["seen", "uid"],
+                       "uid_type_parent-uri-id_actor-id" => ["uid", "type", "parent-uri-id", "actor-id"],
                ]
        ],
        "notify" => [
@@ -1183,10 +1188,12 @@ return [
                "fields" => [
                        "uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the item uri"],
                        "type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "primary" => "1", "comment" => "0 - Featured"],
+                       "author-id" => ["type" => "int unsigned", "foreign" => ["contact" => "id"], "comment" => "Author of the featured post"],
                ],
                "indexes" => [
                        "PRIMARY" => ["uri-id", "type"],
                        "type" => ["type"],
+                       "author-id" => ["author-id"],
                ]
        ],
        "post-content" => [
@@ -1436,6 +1443,7 @@ return [
                        "author-id_uid" => ["author-id", "uid"],
                        "author-id_received" => ["author-id", "received"],
                        "parent-uri-id_uid" => ["parent-uri-id", "uid"],
+                       "uid_wall_received" => ["uid", "wall", "received"],
                        "uid_contactid" => ["uid", "contact-id"],
                        "uid_unseen_contactid" => ["uid", "unseen", "contact-id"],
                        "uid_unseen" => ["uid", "unseen"],
@@ -1734,10 +1742,10 @@ return [
                ],
                "engine" => "MEMORY",
        ],
-       "processed-activity" => [
-               "comment" => "Id of processed activities",
+       "fetched-activity" => [
+               "comment" => "Id of fetched activities",
                "fields" => [
-                       "object-id" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "object id of the incoming activity"],
+                       "object-id" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "object id of fetched activity"],
                        "received" => ["type" => "datetime", "comment" => "Receiving date"],
                ],
                "indexes" => [