]> git.mxchange.org Git - friendica.git/commitdiff
Add new UNIQUE index to group_member
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 15 Dec 2017 13:43:37 +0000 (08:43 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 15 Dec 2017 13:43:37 +0000 (08:43 -0500)
- Add new index on gid

src/Database/DBStructure.php

index 3dc555c861f3a980ea497a9bb2c9b0c6f533a186..8f879c03287801299e11b45082c15b36e167f13e 100644 (file)
@@ -996,7 +996,8 @@ class DBStructure {
                                "indexes" => array(
                                                "PRIMARY" => array("id"),
                                                "contactid" => array("contact-id"),
-                                               "gid_contactid" => array("gid", "contact-id"),
+                                               "gid" => array("gid"),
+                                               "gid_contactid" => array("UNIQUE", "gid", "contact-id"),
                                                )
                                );
                $database["gserver"] = array(