-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows createSequence field "dataType" to be use with DB2 as the database supports it. #3328
Allows createSequence field "dataType" to be use with DB2 as the database supports it. #3328
Conversation
…base supports it.
153ce03
to
45501b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review:
Things to be aware of:
- Apparently the datatype syntax was valid for db2, we just hadn't tested it
- Added integration test to verify it for db2 plus all database types that support it
- Only impacts db2 people using dataType on createSequence
Things to worry about:
- Nothing
The default database for branch runs of the functional tests is against Postgres. I'm running a build that includes DB2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR extends Liquibase to support DB2 sequences defined with a datatype. For example, Liquibase will now snapshot (and generate-changelog/diff-changelog) a DB2 sequence such as:
CREATE SEQUENCE ORG_SEQ AS BIGINT START WITH 1 INCREMENT BY 1
- New integration test added (where the dataType specified is 'INT').
- Functional tests for DB2 passing on this branch.
- No additional testing required.
APPROVED
Impact
Description
As per documentation DB2 documentation (https://www.ibm.com/docs/en/db2/9.7?topic=statements-create-sequence) , dataType parameter is supported by create sequence on DB2.
This PR just removes DB2 from the "blacklist" of "dataType" and adds an integration test to validate that.