veza/veza-backend-api/scripts/apply_migrations_lab.sh
2025-12-04 09:27:47 +01:00

9 lines
207 B
Bash
Executable file

# scripts/apply_migrations_lab.sh
set -e
DB_URL="postgres://postgres:veza@localhost:5435/veza_uuid_lab?sslmode=disable"
for f in migrations/*.sql; do
echo "Applying $f"
psql "$DB_URL" -f "$f"
done