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;