-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathschemaChanges.sql
More file actions
20 lines (16 loc) · 908 Bytes
/
schemaChanges.sql
File metadata and controls
20 lines (16 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- 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 character varying(36) NOT NULL,
new_task_id character varying(36) NOT NULL,
migrated_at bigint NOT NULL,
source character varying(64) DEFAULT 'thread_task_migration',
PRIMARY KEY (old_thread_id)
);
CREATE INDEX IF NOT EXISTS idx_task_migration_mapping_new_task_id
ON task_migration_mapping (new_task_id);
-- 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 character varying(36)
GENERATED ALWAYS AS ((json ->> 'approvedById'::text)) STORED;
CREATE INDEX IF NOT EXISTS idx_task_approved_by_id ON task_entity (approvedbyid);