I use Liquibase 2.0.5,
here’s snippet from my config:
- <addNotNullConstraint columnDataType="VARCHAR(64)"
- columnName="permissions"
- defaultNullValue="ROLE_ADMIN"
- schemaName="users"
- tableName="apiTokens"/>
ERROR 1048 (23000): Column ‘permissions’ cannot be null
- but I need null to be replaced with my default value.
Please help.
Thanks a lot in advance