Skip to content

Commit 8986523

Browse files
authored
chore: realign main migration with 1.11.1 branch (#24938)
1 parent ce7c6ed commit 8986523

4 files changed

Lines changed: 22 additions & 24 deletions

File tree

bootstrap/sql/migrations/native/1.11.1/mysql/postDataMigrationSQLScript.sql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
UPDATE test_definition
2-
SET json = JSON_SET(
3-
json,
4-
'$.supportedServices',
5-
JSON_ARRAY('Snowflake', 'BigQuery', 'Athena', 'Redshift', 'Postgres', 'MySQL', 'Mssql', 'Oracle', 'Trino', 'SapHana')
6-
)
7-
WHERE name = 'tableDiff'
8-
AND (
9-
JSON_EXTRACT(json, '$.supportedServices') IS NULL
10-
OR JSON_LENGTH(JSON_EXTRACT(json, '$.supportedServices')) = 0
11-
);
12-
131
UPDATE
142
classification
153
SET

bootstrap/sql/migrations/native/1.11.1/postgres/postDataMigrationSQLScript.sql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
UPDATE test_definition
2-
SET json = jsonb_set(
3-
json::jsonb,
4-
'{supportedServices}',
5-
'["Snowflake", "BigQuery", "Athena", "Redshift", "Postgres", "MySQL", "Mssql", "Oracle", "Trino", "SapHana"]'::jsonb
6-
)
7-
WHERE name = 'tableDiff'
8-
AND (
9-
json->'supportedServices' IS NULL
10-
OR json->'supportedServices' = '[]'::jsonb
11-
);
12-
131
UPDATE
142
classification
153
SET
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
UPDATE test_definition
2+
SET json = JSON_SET(
3+
json,
4+
'$.supportedServices',
5+
JSON_ARRAY('Snowflake', 'BigQuery', 'Athena', 'Redshift', 'Postgres', 'MySQL', 'Mssql', 'Oracle', 'Trino', 'SapHana')
6+
)
7+
WHERE name = 'tableDiff'
8+
AND (
9+
JSON_EXTRACT(json, '$.supportedServices') IS NULL
10+
OR JSON_LENGTH(JSON_EXTRACT(json, '$.supportedServices')) = 0
11+
);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
UPDATE test_definition
2+
SET json = jsonb_set(
3+
json::jsonb,
4+
'{supportedServices}',
5+
'["Snowflake", "BigQuery", "Athena", "Redshift", "Postgres", "MySQL", "Mssql", "Oracle", "Trino", "SapHana"]'::jsonb
6+
)
7+
WHERE name = 'tableDiff'
8+
AND (
9+
json->'supportedServices' IS NULL
10+
OR json->'supportedServices' = '[]'::jsonb
11+
);

0 commit comments

Comments
 (0)