Add v015 for 1.2.0 release (#12716)

This commit is contained in:
Pere Miquel Brull 2023-08-02 15:57:49 +02:00 committed by GitHub
parent ef6e281f05
commit 73b58011d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View File

@ -61,10 +61,6 @@ SET json = JSON_REPLACE(
where de2.serviceType = 'Mssql' where de2.serviceType = 'Mssql'
and JSON_EXTRACT(json, '$.connection.config.database') is NULL; 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 -- remove keyfile from clickhouse
UPDATE dbservice_entity UPDATE dbservice_entity
SET json = JSON_REMOVE(json, '$.connection.config.keyfile') SET json = JSON_REMOVE(json, '$.connection.config.keyfile')

View File

@ -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;

View File

@ -57,10 +57,6 @@ SET json = JSONB_SET(
WHERE de2.serviceType = 'Mssql' WHERE de2.serviceType = 'Mssql'
AND json->>'{connection,config,database}' IS NULL; 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 -- remove keyfile from clickhouse
UPDATE dbservice_entity UPDATE dbservice_entity
SET json = json #-'{connection,config,keyfile}' SET json = json #-'{connection,config,keyfile}'

View File

@ -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;