chore: import upstream snapshot with attribution
Integration Tests - MySQL + Elasticsearch / Detect Changes (push) Has been cancelled
Integration Tests - MySQL + Elasticsearch / integration-tests-mysql-elasticsearch (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / integration-tests-postgres-elasticsearch-redis (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / integration-tests-postgres-opensearch (push) Has been cancelled
Java Checkstyle / java-checkstyle (push) Has been cancelled
Maven Collate Tests / maven-collate-ci (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests-status (push) Has been cancelled
Publish Package to Maven Central Repository / publish-maven-packages (push) Has been cancelled
OpenMetadata Service Unit Tests / Detect Changes (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests (push) Has been cancelled
OpenMetadata Service Unit Tests / k8s_operator-unit-tests (push) Has been cancelled
Integration Tests - MySQL + Elasticsearch / Detect Changes (push) Has been cancelled
Integration Tests - MySQL + Elasticsearch / integration-tests-mysql-elasticsearch (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / integration-tests-postgres-elasticsearch-redis (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / integration-tests-postgres-opensearch (push) Has been cancelled
Java Checkstyle / java-checkstyle (push) Has been cancelled
Maven Collate Tests / maven-collate-ci (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests-status (push) Has been cancelled
Publish Package to Maven Central Repository / publish-maven-packages (push) Has been cancelled
OpenMetadata Service Unit Tests / Detect Changes (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests (push) Has been cancelled
OpenMetadata Service Unit Tests / k8s_operator-unit-tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
-- Migration script to restructure Databricks connection configuration
|
||||
-- Move 'token' field from connection.config.token to connection.config.authType.token
|
||||
|
||||
UPDATE dbservice_entity
|
||||
SET json = jsonb_set(
|
||||
json #- '{connection,config,token}',
|
||||
'{connection,config,authType}',
|
||||
jsonb_build_object('token', json #> '{connection,config,token}'),
|
||||
true
|
||||
)
|
||||
WHERE serviceType in ('Databricks', 'UnityCatalog')
|
||||
AND jsonb_exists(json -> 'connection' -> 'config', 'token');
|
||||
|
||||
-- Migration to remove .png extension from appScreenshots in apps tables
|
||||
-- Part of fixing appScreenshots extension handling change
|
||||
|
||||
-- Update apps_marketplace table - remove .png extension from appScreenshots only
|
||||
UPDATE apps_marketplace
|
||||
SET json = jsonb_set(
|
||||
json,
|
||||
'{appScreenshots}',
|
||||
REPLACE((json -> 'appScreenshots')::text, '.png"', '"')::jsonb
|
||||
)
|
||||
WHERE json IS NOT NULL
|
||||
AND json -> 'appScreenshots' IS NOT NULL
|
||||
AND jsonb_array_length(json -> 'appScreenshots') > 0
|
||||
AND (json -> 'appScreenshots')::text LIKE '%.png%';
|
||||
|
||||
-- Update installed_apps table - remove .png extension from appScreenshots only
|
||||
UPDATE installed_apps
|
||||
SET json = jsonb_set(
|
||||
json,
|
||||
'{appScreenshots}',
|
||||
REPLACE((json -> 'appScreenshots')::text, '.png"', '"')::jsonb
|
||||
)
|
||||
WHERE json IS NOT NULL
|
||||
AND json -> 'appScreenshots' IS NOT NULL
|
||||
AND jsonb_array_length(json -> 'appScreenshots') > 0
|
||||
AND (json -> 'appScreenshots')::text LIKE '%.png%';
|
||||
|
||||
-- Update apps_data_store table - remove .png extension from appScreenshots only
|
||||
UPDATE apps_data_store
|
||||
SET json = jsonb_set(
|
||||
json::jsonb,
|
||||
'{appScreenshots}',
|
||||
REPLACE((json -> 'appScreenshots')::text, '.png"', '"')::jsonb
|
||||
)
|
||||
WHERE json IS NOT NULL
|
||||
AND json -> 'appScreenshots' IS NOT NULL
|
||||
AND json_array_length((json -> 'appScreenshots')::json) > 0
|
||||
AND (json -> 'appScreenshots')::text LIKE '%.png%';
|
||||
Reference in New Issue
Block a user