-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #932 from liquibase/sequence-generator-fixes
fix: add "as BIGINT" by default to DB2luw, hsqldb and mssql sequences
- Loading branch information
Showing
8 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/main/resources/liquibase/harness/change/expectedSql/db2-luw/alterSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
ALTER SEQUENCE "DB2INST1".test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 | ||
CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
ALTER SEQUENCE "DB2INST1".test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CACHE 371717 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/db2-luw/createSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/db2-luw/dropSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
DROP SEQUENCE "DB2INST1".test_sequence |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/hsqldb/alterSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
INVALID TEST | ||
-- This changeType is checked in scope of ChangeDataTests because there is no way to verify it by snapshotting DB. | ||
-- Verification require running query and ChangeDataTests is able to do it | ||
-- that's why it is marked as | ||
INVALID TEST | ||
-- for ChangeObjectTest |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/hsqldb/createSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/hsqldb/dropSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 | ||
DROP SEQUENCE PUBLIC.test_sequence |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/change/expectedSql/mssql/alterSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 | ||
ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE | ||
ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CACHE 371717 CYCLE |
2 changes: 1 addition & 1 deletion
2
src/main/resources/liquibase/harness/data/expectedSql/hsqldb/alterSequence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 | ||
CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 | ||
ALTER SEQUENCE PUBLIC.test_sequence RESTART WITH 42 |