From 73b58011d474387b981861bf4e16b36299c1d5c5 Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Wed, 2 Aug 2023 15:57:49 +0200 Subject: [PATCH] Add v015 for 1.2.0 release (#12716) --- .../v014__create_db_connection_info.sql | 4 ---- .../v015__create_db_connection_info.sql | 3 +++ .../org.postgresql.Driver/v014__create_db_connection_info.sql | 4 ---- .../org.postgresql.Driver/v015__create_db_connection_info.sql | 3 +++ 4 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 bootstrap/sql/com.mysql.cj.jdbc.Driver/v015__create_db_connection_info.sql create mode 100644 bootstrap/sql/org.postgresql.Driver/v015__create_db_connection_info.sql diff --git a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v014__create_db_connection_info.sql b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v014__create_db_connection_info.sql index aa491d39c39..cf03aff2f94 100644 --- a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v014__create_db_connection_info.sql +++ b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v014__create_db_connection_info.sql @@ -61,10 +61,6 @@ SET json = JSON_REPLACE( where de2.serviceType = 'Mssql' and JSON_EXTRACT(json, '$.connection.config.database') is NULL; --- column deleted not needed for entities that don't support soft delete -ALTER TABLE query_entity DROP COLUMN deleted; -ALTER TABLE event_subscription_entity DROP COLUMN deleted; - -- remove keyfile from clickhouse UPDATE dbservice_entity SET json = JSON_REMOVE(json, '$.connection.config.keyfile') diff --git a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v015__create_db_connection_info.sql b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v015__create_db_connection_info.sql new file mode 100644 index 00000000000..ca2ec2ac907 --- /dev/null +++ b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v015__create_db_connection_info.sql @@ -0,0 +1,3 @@ +-- column deleted not needed for entities that don't support soft delete +ALTER TABLE query_entity DROP COLUMN deleted; +ALTER TABLE event_subscription_entity DROP COLUMN deleted; diff --git a/bootstrap/sql/org.postgresql.Driver/v014__create_db_connection_info.sql b/bootstrap/sql/org.postgresql.Driver/v014__create_db_connection_info.sql index 2186feabd8d..4035765ec8c 100644 --- a/bootstrap/sql/org.postgresql.Driver/v014__create_db_connection_info.sql +++ b/bootstrap/sql/org.postgresql.Driver/v014__create_db_connection_info.sql @@ -57,10 +57,6 @@ SET json = JSONB_SET( WHERE de2.serviceType = 'Mssql' AND json->>'{connection,config,database}' IS NULL; --- column deleted not needed for entities that don't support soft delete -ALTER TABLE query_entity DROP COLUMN deleted; -ALTER TABLE event_subscription_entity DROP COLUMN deleted; - -- remove keyfile from clickhouse UPDATE dbservice_entity SET json = json #-'{connection,config,keyfile}' diff --git a/bootstrap/sql/org.postgresql.Driver/v015__create_db_connection_info.sql b/bootstrap/sql/org.postgresql.Driver/v015__create_db_connection_info.sql new file mode 100644 index 00000000000..ca2ec2ac907 --- /dev/null +++ b/bootstrap/sql/org.postgresql.Driver/v015__create_db_connection_info.sql @@ -0,0 +1,3 @@ +-- column deleted not needed for entities that don't support soft delete +ALTER TABLE query_entity DROP COLUMN deleted; +ALTER TABLE event_subscription_entity DROP COLUMN deleted;