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