flyway check
All checks were successful
CI and deploy / migration-check (push) Successful in 3s
CI and deploy / deploy (push) Successful in 14s

This commit is contained in:
Dusan Vojacek
2026-04-19 14:11:57 +02:00
parent 477e94f321
commit 906eeb1609
8 changed files with 200 additions and 68 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Flyway validate against local Postgres from repo-root docker-compose.
# Requires existing flyway_schema_history (run migrate at least once). Does not run migrate.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if [[ ! -f .env ]]; then
echo "ERROR: missing .env (copy from .env.example)"
exit 1
fi
docker compose --env-file .env run --rm flyway validate