]> git.mxchange.org Git - friendica.git/commitdiff
Fix 8401: Don't let dbstructure think that it needs to update the table
authorMichael <heluecht@pirati.ca>
Wed, 11 Mar 2020 20:49:23 +0000 (20:49 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 Mar 2020 20:49:23 +0000 (20:49 +0000)
static/dbstructure.config.php

index b8daa4eee025e6f40e493610df353f5edbb28088..7c400a892579ef2c580ef472743509b42aec2add 100755 (executable)
@@ -320,8 +320,8 @@ return [
        "contact-relation" => [
                "comment" => "Contact relations",
                "fields" => [
-                       "cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "contact the related contact had interacted with"],
-                       "relation-cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "related contact who had interacted with the contact"],
+                       "cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "primary" => "1", "comment" => "contact the related contact had interacted with"],
+                       "relation-cid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "primary" => "1", "comment" => "related contact who had interacted with the contact"],
                        "last-interaction" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Date of the last interaction"],
                ],
                "indexes" => [