mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-18 14:39:44 +00:00

* backend * format & tests * rename backend * migrations and ingestion * format & tests * format & tests * tests * format & tests * tests * updated ui side of changes * addressing comment * fixed failing unit test * fix test list * added e2e test, and fixed existing test --------- Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
27 lines
967 B
SQL
27 lines
967 B
SQL
-- add timestamp index for test case result reindex performance
|
|
ALTER TABLE data_quality_data_time_series ADD INDEX `idx_timestamp_desc` (timestamp DESC);
|
|
|
|
-- 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';
|