Correct PG migrator syntax

This commit is contained in:
James Agnew 2018-09-17 13:52:22 -04:00
parent 798982773a
commit efe2b8e93d
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class ModifyColumnTask extends BaseTableColumnTypeTask<ModifyColumnTask>
}
if (!alreadyCorrectNullable) {
if (isNullable()) {
sqlNotNull = "alter table " + getTableName() + " alter column " + getColumnName() + " set null";
sqlNotNull = "alter table " + getTableName() + " alter column " + getColumnName() + " drop not null";
} else {
sqlNotNull = "alter table " + getTableName() + " alter column " + getColumnName() + " set not null";
}