Merge pull request #6151 from fabrixxm/issues/6119
dbstructure: check for comment value or use default
This commit is contained in:
commit
c66650f7d8
|
@ -329,8 +329,9 @@ class DBStructure
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($database[$name]["table_status"]["Comment"])) {
|
if (isset($database[$name]["table_status"]["Comment"])) {
|
||||||
if ($database[$name]["table_status"]["Comment"] != $structure['comment']) {
|
$structurecomment = defaults($structure, "comment", "");
|
||||||
$sql2 = "COMMENT = '".DBA::escape($structure['comment'])."'";
|
if ($database[$name]["table_status"]["Comment"] != $structurecomment) {
|
||||||
|
$sql2 = "COMMENT = '".DBA::escape($structurecomment)."'";
|
||||||
|
|
||||||
if ($sql3 == "") {
|
if ($sql3 == "") {
|
||||||
$sql3 = "ALTER" . $ignore . " TABLE `".$temp_name."` ".$sql2;
|
$sql3 = "ALTER" . $ignore . " TABLE `".$temp_name."` ".$sql2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user