-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathschemaChanges.sql
More file actions
17 lines (15 loc) · 889 Bytes
/
schemaChanges.sql
File metadata and controls
17 lines (15 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Task workflow cutover support - OpenMetadata 2.0.1
-- Maps legacy thread task IDs to new task entity IDs for migration traceability and redirects.
CREATE TABLE IF NOT EXISTS task_migration_mapping (
old_thread_id varchar(36) NOT NULL,
new_task_id varchar(36) NOT NULL,
migrated_at bigint NOT NULL,
source varchar(64) DEFAULT 'thread_task_migration',
PRIMARY KEY (old_thread_id),
KEY idx_task_migration_mapping_new_task_id (new_task_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- Data Access Request: indexed approver column for the Approver filter on /v1/tasks and /v1/tasks/dataAccessRequests.
ALTER TABLE task_entity
ADD COLUMN IF NOT EXISTS approvedById varchar(36)
GENERATED ALWAYS AS (json_unquote(json_extract(`json`,_utf8mb4'$.approvedById'))) STORED,
ADD KEY IF NOT EXISTS idx_approved_by_id (approvedById);