Skip to content

Commit

Permalink
Merge pull request #932 from liquibase/sequence-generator-fixes
Browse files Browse the repository at this point in the history
fix: add "as BIGINT" by default to DB2luw, hsqldb and mssql sequences
  • Loading branch information
filipelautert authored Dec 5, 2024
2 parents 49ed19a + 5bf2e2e commit c0ef5f8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
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
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
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
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
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
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
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
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

0 comments on commit c0ef5f8

Please sign in to comment.