mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-07 08:38:23 +00:00

* Update databaseServiceMetadataPipeline.json markDeletedSchemas and markDeletedDatabases should be false by default * add migrations --------- Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com> Co-authored-by: sonika-shah <58761340+sonika-shah@users.noreply.github.com>
27 lines
1.1 KiB
SQL
27 lines
1.1 KiB
SQL
-- Create table for tracking index mapping versions
|
|
CREATE TABLE IF NOT EXISTS index_mapping_versions (
|
|
entityType VARCHAR(256) NOT NULL,
|
|
mappingHash VARCHAR(32) COLLATE ascii_bin NOT NULL,
|
|
mappingJson JSON NOT NULL,
|
|
version VARCHAR(36) NOT NULL,
|
|
updatedAt BIGINT UNSIGNED NOT NULL,
|
|
updatedBy VARCHAR(256) NOT NULL,
|
|
PRIMARY KEY (entityType),
|
|
INDEX idx_version (version),
|
|
INDEX idx_updatedAt (updatedAt)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
|
|
-- remove old reset link email template
|
|
DELETE from doc_store where name = 'reset-link' and entityType = 'EmailTemplate';
|
|
|
|
-- In case 1.7.3 migrations executed , with --force , remove it from server_logs as it is covered in this migration
|
|
DELETE FROM SERVER_CHANGE_LOG WHERE version = '1.7.3';
|
|
|
|
-- Update ingestion pipeline configurations to set markDeletedSchemas and markDeletedDatabases to false
|
|
UPDATE ingestion_pipeline_entity
|
|
SET json = JSON_SET(
|
|
JSON_SET(json, '$.sourceConfig.config.markDeletedSchemas', false),
|
|
'$.sourceConfig.config.markDeletedDatabases', false
|
|
)
|
|
WHERE JSON_EXTRACT(json, '$.sourceConfig.config.type') = 'DatabaseMetadata';
|