How To: Turn off internal rules for CreateIndexType, CreateTableType, and ModifyDataType
Liquibase Enterprise throws failures and warnings for the following conditions in the Packager and Forecast operations:
CreateIndexType -- Using the tablespace that doesn't exist check (Failure)
Forecast: CreateTableType -- Using the tablespace that doesn't exist check (Failure)
Warning: ModifyDataType statement with non-null value in column (Warning)
If you wish to disable any of these internal rules, add an entry in the daticaldb.properties file.
This functionality is available in Liquibase Enterprise versions 8.8+.
Instructions
In the DDB project repo, either add or modify a file called daticaldb.properties in the root directory.
The daticaldb.properties file may be included in your .gitignore file. If so, remove this change from .gitignore so that any changes to this file can be saved to the project.
Add a property in this file called
internalRules.disabledDefaultRules
Valid values for this property include:
MODIFY_DATA_TYPE_CHECKER
CREATE_INDEX_CHECK_TABLESPACE_CHECKER
CREATE_TABLE_CHECK_TABLESPACE_CHECKER
Add any values to the string for the Forecast items you wish to disable. Values are comma-separated. Example:
internalRules.disabledDefaultRules=MODIFY_DATA_TYPE_CHECKER,CREATE_INDEX_CHECK_TABLESPACE_CHECKER,CREATE_TABLE_CHECK_TABLESPACE_CHECKER
Check-in the changes to Git for your DDB project repo.
Run Packager to see the changes reflected for that operation and to update any artifacts to be used by Forecast.
Turning off the CREATE_INDEX_CHECK_TABLESPACE_CHECKER and CREATE_TABLE_CHECK_TABLESPACE_CHECKER rules will only bypass Forecast Rules. These particular scenarios may throw database errors later in the pipeline.
Copyright © Datical 2012-2020 - Proprietary and Confidential