Skip to content

Commit

Permalink
Add YAML and JSON changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliimak committed Aug 1, 2024
1 parent 7de0679 commit 6e3e901
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
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'"
}
}
}
]
}
}
]
}
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'"

0 comments on commit 6e3e901

Please sign in to comment.