-
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.
- Loading branch information
Showing
13 changed files
with
58 additions
and
20 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
exclude: ^report/.*\.(key|pdf) | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
|
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
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
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,3 +1,3 @@ | ||
version=2.0 | ||
version=6.0 | ||
group=ru.romanow.migration | ||
org.gradle.daemon=true |
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,5 +1,5 @@ | ||
FROM liquibase/liquibase:4.20 | ||
|
||
COPY src/main/resources/db/liquibase /liquibase/changelog | ||
COPY src/main/resources/db/liquibase /BOOT-INF/classes/db/liquibase | ||
COPY liquibase-container/drivers/postgresql-driver.jar /liquibase/lib | ||
COPY liquibase-container/config/liquibase.docker.properties /liquibase |
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,2 @@ | ||
searchPath=/liquibase/changelog | ||
changeLogFile=changelog.xml | ||
searchPath=/ | ||
changeLogFile=BOOT-INF/classes/db/liquibase/changelog.xml |
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,10 @@ | ||
# Деплой и откат приложения и миграций БД | ||
|
||
## План | ||
|
||
1. Постановка задачи: деплой `feature`-веток с миграциями БД и последующий откат до `develop`. | ||
2. Прямые и обратные SQL операции. | ||
3. Пример реализации: создаем кластер k8s, деплоим туда несколько версий приложения (_v1.0_, _v2.0_, ... _v5.0_), после | ||
этого откатываем приложение и миграции до _v3.0_ и снова накатываем версию _v6.0_. | ||
4. Ограничения решения. | ||
5. Как настроить liquibase для применения отката миграций. |
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion
1
src/main/resources/db/liquibase/changelog/v1.0_CreateUserTable.xml
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
1 change: 0 additions & 1 deletion
1
src/main/resources/db/liquibase/changelog/v2.0_ChangeIdToIdentity.xml
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