chore(data-diff): added migrations (#18287)

added migrations for data diff test definition
This commit is contained in:
Imri Paran 2024-10-16 10:04:19 +02:00 committed by GitHub
parent 4f89dc582b
commit 52b547ede1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,17 @@
UPDATE test_definition
SET json = JSON_MERGE_PRESERVE(
json,
JSON_OBJECT(
'parameterDefinition',
JSON_ARRAY(
JSON_OBJECT(
'name', 'caseSensitiveColumns',
'dataType', 'BOOLEAN',
'required', false,
'description', 'Use case sensitivity when comparing the columns.',
'displayName', 'Case sensitive columns'
)
)
)
)
WHERE name = 'tableDiff';

View File

@ -0,0 +1,8 @@
UPDATE test_definition
SET json = jsonb_set(
json,
'{parameterDefinition}',
(json->'parameterDefinition')::jsonb ||
'{"name": "caseSensitiveColumns", "dataType": "BOOLEAN", "required": false, "description": "Use case sensitivity when comparing the columns.", "displayName": "Case sensitive columns"}'::jsonb
)
WHERE name = 'tableDiff';