From 6e3e901d295e778361aaab50007b1147736fb83e Mon Sep 17 00:00:00 2001 From: Vitalii Makarchenkov Date: Wed, 31 Jul 2024 15:56:08 +0300 Subject: [PATCH] Add YAML and JSON changelogs --- .../databricks/alterTableProperties.json | 51 +++++++++++++++++++ .../databricks/alterTableProperties.yaml | 24 +++++++++ 2 files changed, 75 insertions(+) create mode 100644 src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.json create mode 100644 src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.yaml diff --git a/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.json b/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.json new file mode 100644 index 00000000..c53b746c --- /dev/null +++ b/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.json @@ -0,0 +1,51 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "your.name", + "changes": [ + { + "createTable": { + "tableName": "test_alter_table_properties", + "columns": [ + { + "column": { + "name":"test_id", + "type": "int" + } + } + ] + } + } + ] + } + }, + { + "changeSet": { + "id": "2", + "author": "your.name", + "changes": [ + { + "alterTableProperties": { + "tableName": "test_alter_table_properties", + "setExtendedTableProperties": { + "tblProperties": "'external.location'='s3://mybucket/mytable','this.is.my.key'=12,'this.is.my.key2'=true" + } + } + } + ], + "rollback": [ + { + "alterTableProperties": { + "tableName": "test_alter_table_properties", + "unsetExtendedTableProperties": { + "tblProperties": "'external.location', 'this.is.my.key','this.is.my.key2'" + } + } + } + ] + } + } + ] +} diff --git a/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.yaml b/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.yaml new file mode 100644 index 00000000..5262b6ef --- /dev/null +++ b/src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.yaml @@ -0,0 +1,24 @@ +databaseChangeLog: + - changeSet: + id: 1 + author: your.name + changes: + - createTable: + tableName: test_alter_table_properties + columns: + - column: + name: test_id + type: int + - changeSet: + id: 2 + author: your.name + changes: + - alterTableProperties: + tableName: test_alter_table_properties + setExtendedTableProperties: + tblProperties: "'external.location'='s3://mybucket/mytable','this.is.my.key'=12,'this.is.my.key2'=true" + rollback: + - alterTableProperties: + tableName: test_alter_table_properties + unsetExtendedTableProperties: + tblProperties: "'external.location', 'this.is.my.key','this.is.my.key2'"