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.
Add YAML and JSON cluster columns examples
- Loading branch information
1 parent
7f0e4fd
commit 51477e9
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...est/resources/liquibase/harness/change/changelogs/databricks/createClusteredTableNew.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,32 @@ | ||
{ | ||
"databaseChangeLog": [ | ||
{ | ||
"changeSet": { | ||
"id": "1", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
"createTable": { | ||
"tableName": "test_table_clustered_new", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "test_id", | ||
"type": "int" | ||
} | ||
}, | ||
{ | ||
"column": { | ||
"name": "test_new", | ||
"type": "int" | ||
} | ||
} | ||
], | ||
"clusterColumns": "test_id,test_new" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
...est/resources/liquibase/harness/change/changelogs/databricks/createClusteredTableNew.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,15 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: 1 | ||
author: your.name | ||
changes: | ||
- createTable: | ||
tableName: test_table_clustered_new | ||
columns: | ||
- column: | ||
name: test_id | ||
type: int | ||
- column: | ||
name: test_new | ||
type: int | ||
clusterColumns: test_id, test_new |