-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
create init data migration set
- Loading branch information
1 parent
f5bb344
commit 7930e7b
Showing
7 changed files
with
459 additions
and
14 deletions.
There are no files selected for viewing
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,40 @@ | ||
## Liquibase changelog policy | ||
|
||
For now this document describes how to name changelog files and changeset IDs. | ||
|
||
___ | ||
|
||
### Changelog files naming rule | ||
The pattern for changelog file name is ```yyMMdd.taskID-branchname```. | ||
|
||
Where: | ||
* ```yyMMdd``` date when you start (or end) to work on task. | ||
It is needed to preserve chronological order of files during sorting. | ||
* ```taskID``` Zenhub ID of the task | ||
* ```branchname``` the same text as the name of the task branch, | ||
just to have short description in history tables of liquibase(for example). | ||
|
||
#### Example | ||
``` | ||
220309.10-create_init_data_migration_set | ||
``` | ||
### Changeset IDs naming rule | ||
The pattern for changeset ID name is | ||
```taskID.<major-sequential-number|any-text-descriptor>.[minor-sequential-number]``` | ||
|
||
Where: | ||
* ```taskID``` Zenhub ID of the task | ||
* ```major-sequential-number``` unique ID in scope of current task (major ID) | ||
* ```text-descriptor``` short text descriptor unique in scope of current task (major ID) | ||
* ```minor-sequential-number``` unique ID in scope of major ID (optional) | ||
|
||
#### Example: | ||
``` | ||
10.route.1 | ||
11.2.3 | ||
17.5 | ||
``` | ||
|
||
--- | ||
P.S. You may want to read | ||
[best practices article](https://www.liquibase.org/get-started/best-practices) |
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
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,3 @@ | ||
spring.liquibase.enabled=true | ||
spring.liquibase.contexts=dev | ||
spring.liquibase.change-log=classpath:liquibase-changelog-root.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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
bot.token=${BOT_TOKEN} | ||
bot.name=${BOT_NAME} | ||
bot.name=${BOT_NAME} | ||
|
||
spring.datasource.url=${DB_URL} | ||
spring.datasource.username=${DB_LOGIN} | ||
spring.datasource.password=${DB_PASSWORD} | ||
|
||
spring.liquibase.enabled=false |
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,4 @@ | ||
databaseChangeLog: | ||
- includeAll: | ||
path: liquibase-changelog | ||
relativeToChangelogFile: true |
Oops, something went wrong.