diff --git a/sql/db2/db2.ddl.persistence.sql b/sql/db2/db2.ddl.persistence.sql index 436b514fae..c980c6030f 100644 --- a/sql/db2/db2.ddl.persistence.sql +++ b/sql/db2/db2.ddl.persistence.sql @@ -912,4 +912,7 @@ CREATE TABLE UUIDTYPE (ID VARCHAR(96) NOT NULL, NAME VARCHAR(255), PRIMARY KEY ( DROP TABLE CRITERIA_TEST_COLTABLE ! DROP TABLE CRITERIA_TEST_TABLE ! CREATE TABLE CRITERIA_TEST_TABLE (ID INTEGER PRIMARY KEY NOT NULL, DATE_VAL DATE, INT_VAL INTEGER, STR_VAL_1 VARCHAR(255), STR_VAL_2 VARCHAR(255), TIME_VAL TIME) ! -CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)) ! \ No newline at end of file +CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)) ! + +DROP SEQUENCE DATATYPES_SEQ ! +CREATE SEQUENCE DATATYPES_SEQ AS INT START WITH 10 ! \ No newline at end of file diff --git a/sql/derby/derby.ddl.persistence.sql b/sql/derby/derby.ddl.persistence.sql index cc1ec9ceb4..e8aeea0e28 100644 --- a/sql/derby/derby.ddl.persistence.sql +++ b/sql/derby/derby.ddl.persistence.sql @@ -932,4 +932,7 @@ CREATE TABLE UUIDTYPE (ID VARCHAR(96) NOT NULL, NAME VARCHAR(255), PRIMARY KEY ( DROP TABLE CRITERIA_TEST_COLTABLE; DROP TABLE CRITERIA_TEST_TABLE; CREATE TABLE CRITERIA_TEST_TABLE (ID INTEGER PRIMARY KEY NOT NULL, DATE_VAL DATE, INT_VAL INTEGER, STR_VAL_1 VARCHAR(255), STR_VAL_2 VARCHAR(255), TIME_VAL TIME); -CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)); \ No newline at end of file +CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)); + +DROP SEQUENCE DATATYPES_SEQ RESTRICT; +CREATE SEQUENCE DATATYPES_SEQ START WITH 1 INCREMENT by 50; \ No newline at end of file diff --git a/sql/oracle/oracle.ddl.persistence.sql b/sql/oracle/oracle.ddl.persistence.sql index bb38550c6e..46237aaaa5 100644 --- a/sql/oracle/oracle.ddl.persistence.sql +++ b/sql/oracle/oracle.ddl.persistence.sql @@ -909,4 +909,7 @@ CREATE TABLE UUIDTYPE (ID VARCHAR(96) NOT NULL, NAME VARCHAR(255), PRIMARY KEY ( DROP TABLE CRITERIA_TEST_COLTABLE ! DROP TABLE CRITERIA_TEST_TABLE ! CREATE TABLE CRITERIA_TEST_TABLE (ID INTEGER PRIMARY KEY NOT NULL, DATE_VAL DATE, INT_VAL INTEGER, STR_VAL_1 VARCHAR(255), STR_VAL_2 VARCHAR(255), TIME_VAL DATE) ! -CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)) ! \ No newline at end of file +CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)) ! + +DROP SEQUENCE DATATYPES_SEQ ! +CREATE SEQUENCE DATATYPES_SEQ START WITH 10 ! \ No newline at end of file diff --git a/sql/postgresql/postgresql.ddl.persistence.sql b/sql/postgresql/postgresql.ddl.persistence.sql index d22ad45c27..2673f1cbc0 100644 --- a/sql/postgresql/postgresql.ddl.persistence.sql +++ b/sql/postgresql/postgresql.ddl.persistence.sql @@ -746,4 +746,7 @@ CREATE TABLE UUIDTYPE (ID VARCHAR(96) NOT NULL, NAME VARCHAR(255), PRIMARY KEY ( DROP TABLE CRITERIA_TEST_COLTABLE; DROP TABLE CRITERIA_TEST_TABLE; CREATE TABLE CRITERIA_TEST_TABLE (ID INTEGER PRIMARY KEY NOT NULL, DATE_VAL DATE, INT_VAL INTEGER, STR_VAL_1 VARCHAR(255), STR_VAL_2 VARCHAR(255), TIME_VAL TIME); -CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)); \ No newline at end of file +CREATE TABLE CRITERIA_TEST_COLTABLE(ENT_ID INTEGER NOT NULL, COLVAL VARCHAR(255), CONSTRAINT FK_CRITERIA_TEST_COLTABLE_ENT_ID FOREIGN KEY (ENT_ID) REFERENCES CRITERIA_TEST_TABLE (ID)); + +DROP SEQUENCE DATATYPES_SEQ; +CREATE SEQUENCE DATATYPES_SEQ START WITH 10; \ No newline at end of file