Merge pull request #5193 from annando/dbstructure

Fix: Avoid endlessly dbstructure changes
This commit is contained in:
Hypolite Petovan 2018-06-11 09:53:03 -04:00 committed by GitHub
commit d71281e45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,8 +322,8 @@ class DBStructure
$parameters['comment'] = ""; $parameters['comment'] = "";
} }
$current_field_definition = implode(",", $field_definition); $current_field_definition = dba::clean_query(implode(",", $field_definition));
$new_field_definition = implode(",", $parameters); $new_field_definition = dba::clean_query(implode(",", $parameters));
if ($current_field_definition != $new_field_definition) { if ($current_field_definition != $new_field_definition) {
$sql2 = self::modifyTableField($fieldname, $parameters); $sql2 = self::modifyTableField($fieldname, $parameters);
if ($sql3 == "") { if ($sql3 == "") {