Commit 4c4c778d authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-42] Optimized column comment change detection. Ignore from columns with...

[DBAL-42] Optimized column comment change detection. Ignore from columns with a null comment which indicates not set compared to an empty string which says delete comment.
parent b0f42d54
...@@ -344,7 +344,8 @@ class Comparator ...@@ -344,7 +344,8 @@ class Comparator
$changedProperties[] = 'autoincrement'; $changedProperties[] = 'autoincrement';
} }
if ($column1->getComment() != $column2->getComment()) { // only allow to delete comment if its set to '' not to null.
if ($column1->getComment() !== null && $column1->getComment() != $column2->getComment()) {
$changedProperties[] = 'comment'; $changedProperties[] = 'comment';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment