]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Inverted condition
[friendica.git] / static / dbstructure.config.php
index e3b1bea30c6b4695261025de68d8c9e22de9cb36..53e341507b25626d5b1db95ff02af3f0d4a1aa5c 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1420);
+       define('DB_UPDATE_VERSION', 1423);
 }
 
 return [
@@ -177,6 +177,7 @@ return [
                        "photo" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo of the contact"],
                        "thumb" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (thumb size)"],
                        "micro" => ["type" => "varchar(255)", "default" => "", "comment" => "Link to the profile photo (micro size)"],
+                       "header" => ["type" => "varchar(255)", "comment" => "Header picture"],
                        "site-pubkey" => ["type" => "text", "comment" => ""],
                        "issued-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
                        "dfrn-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
@@ -404,6 +405,7 @@ return [
                        "name" => ["type" => "varchar(255)", "comment" => ""],
                        "about" => ["type" => "text", "comment" => ""],
                        "photo" => ["type" => "varchar(255)", "comment" => ""],
+                       "header" => ["type" => "varchar(255)", "comment" => "Header picture"],
                        "addr" => ["type" => "varchar(255)", "comment" => ""],
                        "alias" => ["type" => "varchar(255)", "comment" => ""],
                        "pubkey" => ["type" => "text", "comment" => ""],
@@ -882,6 +884,29 @@ return [
                        "mid" => ["mid"],
                ]
        ],
+       "notification" => [
+               "comment" => "notifications",
+               "fields" => [
+                       "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
+                       "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
+                       "vid" => ["type" => "smallint unsigned", "foreign" => ["verb" => "id", "on delete" => "restrict"], "comment" => "Id of the verb table entry that contains the activity verbs"],
+                       "type" => ["type" => "tinyint unsigned", "comment" => ""],
+                       "actor-id" => ["type" => "int unsigned", "foreign" => ["contact" => "id"], "comment" => "Link to the contact table with uid=0 of the actor that caused the notification"],
+                       "target-uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Item-uri id of the related post"],
+                       "parent-uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Item-uri id of the parent of the related post"],
+                       "created" => ["type" => "datetime", "comment" => ""],
+                       "seen" => ["type" => "boolean", "default" => "0", "comment" => ""],
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["id"],
+                       "uid_vid_type_actor-id_target-uri-id" => ["UNIQUE", "uid", "vid", "type", "actor-id", "target-uri-id"],
+                       "vid" => ["vid"],
+                       "actor-id" => ["actor-id"],
+                       "target-uri-id" => ["target-uri-id"],
+                       "parent-uri-id" => ["parent-uri-id"],
+                       "seen_uid" => ["seen", "uid"],
+               ]
+       ],
        "notify" => [
                "comment" => "notifications",
                "fields" => [