generated from liquibase/liquibase-extension-example
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7de0679
commit 6e3e901
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.json
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,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'" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
src/test/resources/liquibase/harness/change/changelogs/databricks/alterTableProperties.yaml
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,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'" |