From ef33757704213afce10aa7b5dff57c177785827d Mon Sep 17 00:00:00 2001 From: Elena Mokeeva Date: Fri, 29 Sep 2023 10:33:44 +0200 Subject: [PATCH] Closes #2397 - adjust the version to 7.0.0 in update scripts --- .../src/main/resources/sql/db2/taskana-schema-db2.sql | 2 +- ...0_db2.sql => taskana_schema_update_6.2.0_to_7.0.0_db2.sql} | 4 ++-- .../src/main/resources/sql/h2/taskana-schema-h2.sql | 2 +- ...4.0_h2.sql => taskana_schema_update_6.2.0_to_7.0.0_h2.sql} | 4 ++-- .../src/main/resources/sql/oracle/taskana-schema-oracle.sql | 2 +- ...le.sql => taskana_schema_update_6.2.0_to_7.0.0_oracle.sql} | 4 ++-- .../main/resources/sql/postgres/taskana-schema-postgres.sql | 2 +- ....sql => taskana_schema_update_6.2.0_to_7.0.0_postgres.sql} | 4 ++-- .../src/main/java/pro/taskana/common/api/TaskanaEngine.java | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) rename common/taskana-common/src/main/resources/sql/db2/{taskana_schema_update_6.2.0_to_6.4.0_db2.sql => taskana_schema_update_6.2.0_to_7.0.0_db2.sql} (88%) rename common/taskana-common/src/main/resources/sql/h2/{taskana_schema_update_6.2.0_to_6.4.0_h2.sql => taskana_schema_update_6.2.0_to_7.0.0_h2.sql} (84%) rename common/taskana-common/src/main/resources/sql/oracle/{taskana_schema_update_6.2.0_to_6.4.0_oracle.sql => taskana_schema_update_6.2.0_to_7.0.0_oracle.sql} (87%) rename common/taskana-common/src/main/resources/sql/postgres/{taskana_schema_update_6.2.0_to_6.4.0_postgres.sql => taskana_schema_update_6.2.0_to_7.0.0_postgres.sql} (87%) diff --git a/common/taskana-common/src/main/resources/sql/db2/taskana-schema-db2.sql b/common/taskana-common/src/main/resources/sql/db2/taskana-schema-db2.sql index 699e9dbc93..7f5a3600a0 100644 --- a/common/taskana-common/src/main/resources/sql/db2/taskana-schema-db2.sql +++ b/common/taskana-common/src/main/resources/sql/db2/taskana-schema-db2.sql @@ -15,7 +15,7 @@ CREATE SEQUENCE TASKANA_SCHEMA_VERSION_ID_SEQ -- The VERSION value must be equal or higher then the value of TaskanaEngineImpl.MINIMAL_TASKANA_SCHEMA_VERSION INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (TASKANA_SCHEMA_VERSION_ID_SEQ.NEXTVAL, '5.10.0', CURRENT_TIMESTAMP); +VALUES (TASKANA_SCHEMA_VERSION_ID_SEQ.NEXTVAL, '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE CLASSIFICATION ( diff --git a/common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_6.4.0_db2.sql b/common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_7.0.0_db2.sql similarity index 88% rename from common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_6.4.0_db2.sql rename to common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_7.0.0_db2.sql index 5a1398826e..11d04a1d88 100644 --- a/common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_6.4.0_db2.sql +++ b/common/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_7.0.0_db2.sql @@ -1,8 +1,8 @@ --- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. +-- this script updates the TASKANA database schema from version 6.2.0 to version 7.0.0. SET SCHEMA %schemaName%; INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE PERMISSION_INFO ( diff --git a/common/taskana-common/src/main/resources/sql/h2/taskana-schema-h2.sql b/common/taskana-common/src/main/resources/sql/h2/taskana-schema-h2.sql index 94e28dbf18..a12789a723 100644 --- a/common/taskana-common/src/main/resources/sql/h2/taskana-schema-h2.sql +++ b/common/taskana-common/src/main/resources/sql/h2/taskana-schema-h2.sql @@ -22,7 +22,7 @@ CREATE SEQUENCE TASKANA_SCHEMA_VERSION_ID_SEQ -- The VERSION value must be equal or higher then the value of TaskanaEngineImpl.MINIMAL_TASKANA_SCHEMA_VERSION INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '5.10.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE CLASSIFICATION ( diff --git a/common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_6.4.0_h2.sql b/common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_7.0.0_h2.sql similarity index 84% rename from common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_6.4.0_h2.sql rename to common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_7.0.0_h2.sql index 480997e6a6..271e7ebcc7 100644 --- a/common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_6.4.0_h2.sql +++ b/common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_7.0.0_h2.sql @@ -1,7 +1,7 @@ --- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. +-- this script updates the TASKANA database schema from version 6.2.0 to version 7.0.0. INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE PERMISSION_INFO ( diff --git a/common/taskana-common/src/main/resources/sql/oracle/taskana-schema-oracle.sql b/common/taskana-common/src/main/resources/sql/oracle/taskana-schema-oracle.sql index e161f21557..8591f0213d 100644 --- a/common/taskana-common/src/main/resources/sql/oracle/taskana-schema-oracle.sql +++ b/common/taskana-common/src/main/resources/sql/oracle/taskana-schema-oracle.sql @@ -14,7 +14,7 @@ CREATE SEQUENCE TASKANA_SCHEMA_VERSION_ID_SEQ -- The VERSION value must be equal or higher then the value of TaskanaEngineImpl.MINIMAL_TASKANA_SCHEMA_VERSION INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (TASKANA_SCHEMA_VERSION_ID_SEQ.NEXTVAL, '5.10.0', CURRENT_TIMESTAMP); +VALUES (TASKANA_SCHEMA_VERSION_ID_SEQ.NEXTVAL, '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE CLASSIFICATION ( diff --git a/common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_6.4.0_oracle.sql b/common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_7.0.0_oracle.sql similarity index 87% rename from common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_6.4.0_oracle.sql rename to common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_7.0.0_oracle.sql index 257f008748..1d21a5b3a4 100644 --- a/common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_6.4.0_oracle.sql +++ b/common/taskana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_7.0.0_oracle.sql @@ -1,8 +1,8 @@ --- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. +-- this script updates the TASKANA database schema from version 6.2.0 to version 7.0.0. ALTER SESSION SET CURRENT_SCHEMA = %schemaName%; INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE PERMISSION_INFO ( diff --git a/common/taskana-common/src/main/resources/sql/postgres/taskana-schema-postgres.sql b/common/taskana-common/src/main/resources/sql/postgres/taskana-schema-postgres.sql index 70ed91ef7c..ee8a784a28 100644 --- a/common/taskana-common/src/main/resources/sql/postgres/taskana-schema-postgres.sql +++ b/common/taskana-common/src/main/resources/sql/postgres/taskana-schema-postgres.sql @@ -18,7 +18,7 @@ CREATE SEQUENCE TASKANA_SCHEMA_VERSION_ID_SEQ -- The VERSION value must be equal or higher then the value of TaskanaEngineImpl.MINIMAL_TASKANA_SCHEMA_VERSION INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '5.10.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE CLASSIFICATION ( diff --git a/common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_6.4.0_postgres.sql b/common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_7.0.0_postgres.sql similarity index 87% rename from common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_6.4.0_postgres.sql rename to common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_7.0.0_postgres.sql index fc11623db4..e499e4a396 100644 --- a/common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_6.4.0_postgres.sql +++ b/common/taskana-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_7.0.0_postgres.sql @@ -1,9 +1,9 @@ --- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. +-- this script updates the TASKANA database schema from version 6.2.0 to version 7.0.0. SET search_path = %schemaName%; INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) -VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); +VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.0', CURRENT_TIMESTAMP); CREATE TABLE PERMISSION_INFO ( diff --git a/lib/taskana-core/src/main/java/pro/taskana/common/api/TaskanaEngine.java b/lib/taskana-core/src/main/java/pro/taskana/common/api/TaskanaEngine.java index 38948b3c06..d67b0e62b7 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/common/api/TaskanaEngine.java +++ b/lib/taskana-core/src/main/java/pro/taskana/common/api/TaskanaEngine.java @@ -16,7 +16,7 @@ /** The TaskanaEngine represents an overall set of all needed services. */ public interface TaskanaEngine { - String MINIMAL_TASKANA_SCHEMA_VERSION = "5.2.0"; + String MINIMAL_TASKANA_SCHEMA_VERSION = "7.0.0"; /** * Returns a {@linkplain TaskService} initialized with the current TaskanaEngine. {@linkplain