TSK-1038 New schema version
This commit is contained in:
parent
16a82efcb5
commit
6a5736527e
|
@ -41,7 +41,7 @@ import pro.taskana.impl.util.LoggerUtils;
|
|||
public class TaskanaEngineConfiguration {
|
||||
|
||||
protected static final String TASKANA_SCHEMA_VERSION =
|
||||
"1.1.5"; // must match the VERSION value in table
|
||||
"1.2.1"; // must match the VERSION value in table
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(TaskanaEngineConfiguration.class);
|
||||
private static final String USER_NAME = "sa";
|
||||
private static final String USER_PASSWORD = "sa";
|
||||
|
|
|
@ -7,7 +7,7 @@ CREATE TABLE TASKANA_SCHEMA_VERSION(
|
|||
PRIMARY KEY (ID)
|
||||
);
|
||||
-- The VERSION value must match the value of TaskanaEngineConfiguration.TASKANA_SCHEMA_VERSION
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.1.5', CURRENT_TIMESTAMP);
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.2.1', CURRENT_TIMESTAMP);
|
||||
|
||||
CREATE TABLE CLASSIFICATION(
|
||||
ID CHAR(40) NOT NULL,
|
||||
|
|
|
@ -9,7 +9,7 @@ CREATE TABLE TASKANA_SCHEMA_VERSION(
|
|||
PRIMARY KEY (ID)
|
||||
);
|
||||
-- The VERSION value must match the value of TaskanaEngineConfiguration.TASKANA_SCHEMA_VERSION
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.1.5', CURRENT_TIMESTAMP);
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.2.1', CURRENT_TIMESTAMP);
|
||||
|
||||
CREATE TABLE CLASSIFICATION(
|
||||
ID CHAR(40) NOT NULL,
|
||||
|
|
|
@ -9,7 +9,7 @@ CREATE TABLE TASKANA_SCHEMA_VERSION(
|
|||
PRIMARY KEY (ID)
|
||||
);
|
||||
-- The VERSION value must match the value of TaskanaEngineConfiguration.TASKANA_SCHEMA_VERSION
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.1.5', CURRENT_TIMESTAMP);
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.2.1', CURRENT_TIMESTAMP);
|
||||
|
||||
CREATE TABLE CLASSIFICATION(
|
||||
ID CHAR(40) NOT NULL,
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
-- this script adds a unique constraint to WORKBASKET_ACCESS_LIST
|
||||
-- allowing a maximum of one WORKBASKET_ACCESS_LIST per workbasket and access_id
|
||||
-- Please replace %schemaName% before executing the script
|
||||
|
||||
SET SCHEMA %schemaName%;
|
||||
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.2.1', CURRENT_TIMESTAMP);
|
||||
|
||||
-- If the database contains records that violate this constraint, the following statement will fail.
|
||||
-- In this case it is required to remove the conflicting records before the constraint can be added
|
||||
|
||||
ALTER TABLE WORKBASKET_ACCESS_LIST ADD CONSTRAINT UC_ACCESSID_WBID UNIQUE (ACCESS_ID, WORKBASKET_ID);
|
|
@ -0,0 +1,12 @@
|
|||
-- this script adds a unique constraint to WORKBASKET_ACCESS_LIST
|
||||
-- allowing a maximum of one WORKBASKET_ACCESS_LIST per workbasket and access_id
|
||||
-- Please replace %schemaName% before executing the script
|
||||
|
||||
SET search_path = %schemaName%;
|
||||
|
||||
INSERT INTO TASKANA_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.2.1', CURRENT_TIMESTAMP);
|
||||
|
||||
-- If the database contains records that violate this constraint, the following statement will fail.
|
||||
-- In this case it is required to remove the conflicting records before the constraint can be added
|
||||
|
||||
ALTER TABLE WORKBASKET_ACCESS_LIST ADD CONSTRAINT UC_ACCESSID_WBID UNIQUE (ACCESS_ID, WORKBASKET_ID);
|
Loading…
Reference in New Issue