[DAT-8906] Added validation errors for SQLite and DB2z databases #2359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Environment
Liquibase Version: 4.6.2
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: na
Database Vendor & Version: db2z 11, sqlite 3.34.0
Operating System Type & Version: windows 10
Pull Request Type
Description
Some Liquibase community change types didn't throw validation errors previously ('not supported' exception) though Liquibase doesn't support them according to documentation. The list of databases and changetypes for which validation errors were added:
SQLite (createProcedure, dropProcedure, renameSequence);
DB2z (modifyDataType, addAutoIncrement)
Steps To Reproduce
Run update command against upper named databases/change types;
Actual Behavior
Different SQL syntax errors are thrown (liquibase tries to generate and execute queries that cause syntax errors)
Expected/Desired Behavior
Validation error (e.g. createProcedure is not allowed for SQLite) should be thrown.
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us on our discord channel