-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into incremental-metadata-extraction-config
- Loading branch information
Showing
2,333 changed files
with
50,453 additions
and
12,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 43 additions & 1 deletion
44
bootstrap/sql/migrations/native/1.6.2/mysql/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
-- add timestamp index for test case result reindex performance | ||
ALTER TABLE data_quality_data_time_series ADD INDEX `idx_timestamp_desc` (timestamp DESC); | ||
ALTER TABLE data_quality_data_time_series ADD INDEX `idx_timestamp_desc` (timestamp DESC); | ||
|
||
CREATE TABLE background_jobs ( | ||
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | ||
jobType VARCHAR(256) NOT NULL, | ||
methodName VARCHAR(256) NOT NULL, | ||
jobArgs JSON NOT NULL, | ||
status VARCHAR(50) NOT NULL DEFAULT 'PENDING', | ||
createdBy VARCHAR(256) NOT NULL, | ||
createdAt BIGINT UNSIGNED NOT NULL DEFAULT (UNIX_TIMESTAMP(NOW(3)) * 1000), | ||
updatedAt BIGINT UNSIGNED NOT NULL DEFAULT (UNIX_TIMESTAMP(NOW(3)) * 1000) | ||
); | ||
|
||
CREATE INDEX idx_status_createdAt ON background_jobs (status, createdAt); | ||
CREATE INDEX idx_createdBy ON background_jobs (createdBy); | ||
CREATE INDEX idx_status ON background_jobs (status); | ||
CREATE INDEX idx_jobType ON background_jobs (jobType); | ||
CREATE INDEX idx_updatedAt ON background_jobs (updatedAt); | ||
|
||
-- rename executable -> basic for test suites | ||
UPDATE test_suite | ||
SET json = JSON_INSERT( | ||
JSON_REMOVE(json, '$.executable'), | ||
'$.basic', | ||
JSON_EXTRACT(json, '$.executable') | ||
) | ||
WHERE JSON_EXTRACT(json, '$.executable') IS NOT NULL; | ||
|
||
-- rename executableEntityReference -> basicEntityReference for test suites | ||
UPDATE test_suite | ||
SET json = JSON_INSERT( | ||
JSON_REMOVE(json, '$.executableEntityReference'), | ||
'$.basicEntityReference', | ||
JSON_EXTRACT(json, '$.executableEntityReference') | ||
) | ||
WHERE JSON_EXTRACT(json, '$.executableEntityReference') IS NOT NULL; | ||
|
||
-- clean up the testSuites | ||
UPDATE test_case SET json = json_remove(json, '$.testSuites'); | ||
|
||
-- clean up the testSuites in the version history too | ||
UPDATE entity_extension SET json = json_remove(json, '$.testSuites') WHERE jsonSchema = 'testCase'; | ||
|
44 changes: 44 additions & 0 deletions
44
bootstrap/sql/migrations/native/1.6.2/postgres/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
-- add timestamp index for test case result reindex performance | ||
CREATE INDEX idx_timestamp_desc ON data_quality_data_time_series (timestamp DESC); | ||
|
||
CREATE TABLE background_jobs ( | ||
id BIGSERIAL PRIMARY KEY, | ||
jobType VARCHAR(256) NOT NULL, | ||
methodName VARCHAR(256) NOT NULL, | ||
jobArgs JSONB NOT NULL, | ||
status VARCHAR(50) NOT NULL DEFAULT 'PENDING', | ||
createdBy VARCHAR(256) NOT NULL, | ||
createdAt BIGINT NOT NULL DEFAULT (EXTRACT(EPOCH FROM NOW()) * 1000)::BIGINT, | ||
updatedAt BIGINT NOT NULL DEFAULT (EXTRACT(EPOCH FROM NOW()) * 1000)::BIGINT | ||
); | ||
|
||
CREATE INDEX idx_status_createdAt ON background_jobs (status, createdAt); | ||
CREATE INDEX idx_createdBy ON background_jobs (createdBy); | ||
CREATE INDEX idx_status ON background_jobs (status); | ||
CREATE INDEX idx_jobType ON background_jobs (jobType); | ||
CREATE INDEX idx_updatedAt ON background_jobs (updatedAt); | ||
|
||
-- rename executable -> basic for test suites | ||
UPDATE test_suite | ||
SET json = jsonb_set( | ||
json::jsonb #- '{executable}', | ||
'{basic}', | ||
(json #> '{executable}')::jsonb, | ||
true | ||
) | ||
WHERE json #>> '{executable}' IS NOT NULL; | ||
|
||
-- rename executableEntityReference -> basicEntityReference for test suites | ||
UPDATE test_suite | ||
SET json = jsonb_set( | ||
json::jsonb #- '{executableEntityReference}', | ||
'{basicEntityReference}', | ||
(json #> '{executableEntityReference}')::jsonb, | ||
true | ||
) | ||
WHERE json #>> '{executableEntityReference}' IS NOT NULL; | ||
|
||
-- clean up the testSuites | ||
UPDATE test_case SET json = json::jsonb #- '{testSuites}'; | ||
|
||
-- clean up the testSuites in the version history too | ||
UPDATE entity_extension SET json = json::jsonb #- '{testSuites}' WHERE jsonSchema = 'testCase'; | ||
|
7 changes: 7 additions & 0 deletions
7
bootstrap/sql/migrations/native/1.7.0/mysql/postDataMigrationSQLScript.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
UPDATE workflow_definition_entity | ||
SET json = JSON_SET(json, '$.trigger.type', 'eventBasedEntity') | ||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'eventBasedEntityWorkflow'; | ||
|
||
UPDATE workflow_definition_entity | ||
SET json = JSON_SET(json, '$.trigger.type', 'periodicBatchEntity') | ||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'periodicBatchEntityWorkflow'; |
3 changes: 3 additions & 0 deletions
3
bootstrap/sql/migrations/native/1.7.0/mysql/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPDATE workflow_definition_entity | ||
SET json = JSON_REMOVE(json, '$.type') | ||
WHERE JSON_EXTRACT(json, '$.type') IS NOT NULL; |
7 changes: 7 additions & 0 deletions
7
bootstrap/sql/migrations/native/1.7.0/postgres/postDataMigrationSQLScript.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
UPDATE workflow_definition_entity | ||
SET json = jsonb_set(json, '{trigger,type}', '"eventBasedEntity"') | ||
WHERE json->'trigger'->>'type' = 'eventBasedEntityWorkflow'; | ||
|
||
UPDATE workflow_definition_entity | ||
SET json = jsonb_set(json, '{trigger,type}', '"periodicBatchEntity"') | ||
WHERE json->'trigger'->>'type' = 'periodicBatchEntityWorkflow'; |
3 changes: 3 additions & 0 deletions
3
bootstrap/sql/migrations/native/1.7.0/postgres/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPDATE workflow_definition_entity | ||
SET json = json - 'type' | ||
WHERE json->>'type' IS NOT NULL; |
Oops, something went wrong.