diff --git a/src/Charcoal/Source/DatabaseSource.php b/src/Charcoal/Source/DatabaseSource.php index 19b4d4e4..8645e950 100644 --- a/src/Charcoal/Source/DatabaseSource.php +++ b/src/Charcoal/Source/DatabaseSource.php @@ -232,11 +232,7 @@ public function alterTable() $alter = true; } - if ((strtolower($col['Null']) === 'no') && !$field->allowNull()) { - $alter = true; - } - - if ((strtolower($col['Null']) !== 'no') && $field->allowNull()) { + if ((strtolower($col['Null']) !== 'no') !== $field->allowNull()) { $alter = true; }