]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Avoid endlessly dbstructure changes
authorMichael <heluecht@pirati.ca>
Mon, 11 Jun 2018 13:22:08 +0000 (13:22 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 11 Jun 2018 13:22:08 +0000 (13:22 +0000)
src/Database/DBStructure.php

index 900e00b521384227ade6db134a478a11c902a324..d4419553c493b8b60a9d07416249d62fd2bb0672 100644 (file)
@@ -322,8 +322,8 @@ class DBStructure
                                                        $parameters['comment'] = "";
                                                }
 
-                                               $current_field_definition = implode(",", $field_definition);
-                                               $new_field_definition = implode(",", $parameters);
+                                               $current_field_definition = dba::clean_query(implode(",", $field_definition));
+                                               $new_field_definition = dba::clean_query(implode(",", $parameters));
                                                if ($current_field_definition != $new_field_definition) {
                                                        $sql2 = self::modifyTableField($fieldname, $parameters);
                                                        if ($sql3 == "") {
@@ -1074,7 +1074,7 @@ class DBStructure
                                "fields" => [
                                                "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
                                                "gid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["group" => "id"], "comment" => "groups.id of the associated group"],
-                                               "contact-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "contact.id  of the member assigned to the associated group"],
+                                               "contact-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => "contact.id of the member assigned to the associated group"],
                                                ],
                                "indexes" => [
                                                "PRIMARY" => ["id"],