mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-30 12:49:58 +00:00

* Added migration steps to delete profiler pipeline from entity relationship * Added migration to remove rows from entity_relationship with profiler pipelines * Fixed sample data TestDefinition name after renaming testDefinition * Added user_tokens table to v005 Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com>
15 lines
572 B
SQL
15 lines
572 B
SQL
DELETE FROM entity_relationship
|
|
WHERE toEntity = 'ingestionPipeline'
|
|
AND toId NOT IN (
|
|
SELECT DISTINCT id
|
|
FROM ingestion_pipeline_entity
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS user_tokens (
|
|
token VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.token') STORED NOT NULL,
|
|
userId VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.userId') STORED NOT NULL,
|
|
tokenType VARCHAR(50) GENERATED ALWAYS AS (json ->> '$.tokenType') STORED NOT NULL,
|
|
json JSON NOT NULL,
|
|
expiryDate BIGINT UNSIGNED GENERATED ALWAYS AS (json ->> '$.expiryDate') NOT NULL,
|
|
PRIMARY KEY (token)
|
|
); |