Hi,
When I use Liquibase to try to remove the NOT NULL constraint of a column I’m getting the following error:
- Migration failed for change set /var/tmp/2817394908676666105-diff.xml::1279899379588-1::root (generated):
Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE TEST_SCHEMA.NOT_NULL_TBL ALTER COLUMN BIGINT_ DROP NOT NULL:
Caused By: Error executing SQL ALTER TABLE TEST_SCHEMA.NOT_NULL_TBL ALTER COLUMN BIGINT_ DROP NOT NULL:
Caused By: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: NOT NULL;COLUMN BIGINT_ DROP;
com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: NOT NULL;COLUMN BIGINT_ DROP;
If I manually try to run “ALTER TABLE TEST_SCHEMA.NOT_NULL_TBL ALTER COLUMN BIGINT_ DROP NOT NULL” on my DB2 database I also get the error. Does anyone know what the right command is to make my ‘BIGINT_’ column nullable?