sonika-shah 4d473c8204
Fix 1.7.3 pending migrations (#22434)
* Fix 1.7.3 pending migrations

* move to 1.8.7

* move to 1.8.7
2025-07-21 20:58:11 -07:00

20 lines
803 B
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';