Correct PG migrator syntax
This commit is contained in:
parent
798982773a
commit
efe2b8e93d
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue