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
Auto-increment column starting with a custom value no longer works with H2 v1 #3722
Comments
Hi, thanks for following this up so quickly. If you look at line 295 of the
The SQL output in your response indicates that you are using version 2 of H2, not version 1. Could I ask you to check that? For H2 v1, the output would instead be:
H2 doesn't understand that syntax in version 1:
|
…ue no longer works with H2 v1
Environment
Liquibase Version: 4.14.0 - 4.19.0
Liquibase Integration & Version: embedded
Liquibase Extension(s) & Version: N/A
Database Vendor & Version: H2 v1.4.200
Operating System Type & Version: macOS
Infrastructure Type/Provider: N/A
Description
Commit 9f80bc0 introduced a regression to what was originally fixed by PR #305.
Steps to Reproduce
Specify the primary key of some table as follows:
Actual Behavior
Starting with version 4.14.0, Liquibase uses SQL syntax that H2 does not yet support in v1:
Expected/Desired Behavior
SQL syntax supported by H2 v1:
Additional Context
See the
AUTO_INCREMENT
syntax in H2 v1's documentation: https://web.archive.org/web/20180106125259/http://www.h2database.com/html/grammar.html#column_definition.The text was updated successfully, but these errors were encountered: