Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ concurrency:
cancel-in-progress: true

jobs:
database-migrations:
name: Flyway MySQL
uses: opensabre/base-k8s/.github/workflows/service-database-migrations.yml@main
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
service: base-sysadmin

test:
name: Maven Verify
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/db/migration/mysql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MySQL migrations

- `baseline/`: frozen current-product `B` baseline used only for new databases; never regenerate it after release.
- `history/`: immutable migrations released before the structured layout.
- `ddl/`: new versioned schema changes; do not include data changes.
- `dml/`: new versioned data changes; do not include schema changes.

Flyway orders every migration by version across these directories. Directory order is not execution order.
Never rename or edit a migration after it has been released.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/resources/db/migration/mysql/ddl/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/main/resources/db/migration/mysql/dml/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading