Watch
1
0
Fork
You've already forked jeap-spring-boot-db-migration-starter
0
Read-only mirror of https://github.com/jeap-admin-ch/jeap-spring-boot-db-migration-starter — Bundesamt für Informatik und Telekommunikation. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/x0xr80 https://www.opensource.admin.ch/en/softwares/x0xr80
  • Java 98.7%
  • Shell 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-13 07:55:21 +02:00
.mvn/wrapper JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
.run JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
docs [skip ci] JEAP-7090 Update documentation for multiple database connections 2026-07-03 09:22:29 +02:00
jeap-spring-boot-db-migration-starter Version 19.22.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:54:00 +02:00
jeap-spring-boot-db-migration-starter-it Version 19.22.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:54:00 +02:00
.gitignore JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
AGENTS.md [skip ci] JEAP-7090 Add docs 2026-06-18 16:26:05 +02:00
CHANGELOG.md Version 19.22.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:54:00 +02:00
CONTRIBUTING.md JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
exclude-patterns.txt JEAP-7255 Ignore docs for trufflehog 2026-07-14 13:50:02 +02:00
LICENSE JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
mvnw JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
pom.xml Version 19.22.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:54:00 +02:00
publiccode.yml Update version/date in publiccode.yml 2026-08-13 07:55:21 +02:00
README.md [skip ci] JEAP-7090 Update documentation for multiple database connections 2026-07-03 09:22:29 +02:00
SECURITY.md JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
setPomVersions.sh JEAP-5571: moved code from jeap-spring-boot-starters 2025-05-21 12:15:39 +02:00
THIRD-PARTY-LICENSES.md Updating THIRD-PARTY-LICENSES.md 2026-06-17 08:36:04 +02:00

jEAP Spring Boot DB Migration Starter

jEAP Spring Boot DB Migration Starter is a Spring Boot starter that runs Flyway database migrations in jEAP services with a PostgreSQL focus. On Kubernetes-based platforms it lets the schema migration run as a dedicated job (init container) that completes before the application pods start, so the database is ready before the service goes live. For local development it falls back to the familiar migrate-on-startup behaviour. Adding the starter and a few properties is enough — it auto-configures a custom Flyway migration strategy. It provides:

  • A custom FlywayMigrationStrategy that picks the right behaviour for the current platform
  • Init-container mode: migrate, then terminate the pod with the migration result as exit code
  • Application-container mode: verify the migration was already applied, otherwise refuse to start
  • Startup-migrate mode: classic migrate-on-startup, used automatically outside Kubernetes
  • Configuration via the database-migration.* properties, on top of the standard spring.flyway.* properties

Documentation

Start with Getting started, then follow the links below.

Topic File
Getting started (add the dependency, configure) docs/getting-started.md
Migration modes & strategy resolution docs/migration-modes.md
Configuration reference (database-migration.*) docs/configuration.md
Kubernetes deployment & the migration job docs/kubernetes-deployment.md

Changes

This library is versioned using Semantic Versioning and all changes are documented in CHANGELOG.md following the format defined in Keep a Changelog.

Note

This repository is part the open source distribution of jEAP. See github.com/jeap-admin-ch/jeap for more information.

License

This repository is Open Source Software licensed under the Apache License 2.0.