Zach Cox
2007-12-05 05:35:10 UTC
I have a column that is NOT NULL and I want to remove that constraint.
I tried using this change set:
<changeSet id="16" author="zcox">
<comment>Make barcode column nullable</comment>
<dropNotNullConstraint tableName="barcode_searches"
columnName="barcode"/>
</changeSet>
But LiquiBase 1.4.1 tries to run this SQL on the MySQL database:
ALTER TABLE barcode_searches MODIFY barcode null NULL
Which obviously causes this error:
You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'null NULL' at line 1
Am I not using dropNotNullConstraint properly or is it broken?
Thanks,
Zach
I tried using this change set:
<changeSet id="16" author="zcox">
<comment>Make barcode column nullable</comment>
<dropNotNullConstraint tableName="barcode_searches"
columnName="barcode"/>
</changeSet>
But LiquiBase 1.4.1 tries to run this SQL on the MySQL database:
ALTER TABLE barcode_searches MODIFY barcode null NULL
Which obviously causes this error:
You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'null NULL' at line 1
Am I not using dropNotNullConstraint properly or is it broken?
Thanks,
Zach