Files
ems/scripts/flyway_validate_local.sh
Dusan Vojacek 906eeb1609
All checks were successful
CI and deploy / migration-check (push) Successful in 3s
CI and deploy / deploy (push) Successful in 14s
flyway check
2026-04-19 14:11:57 +02:00

12 lines
402 B
Bash
Executable File

#!/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