Files
SuperSunday/apply_matches_migration.sh
2025-08-25 12:39:54 +00:00

11 lines
388 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo "📦 Copie du script SQL de migration…"
docker compose cp backend/sql/migrate_matches_add_cols.sql db:/tmp/migrate_matches_add_cols.sql
echo "🗃 Application de la migration sur la base 'supersunday'…"
docker compose exec db sh -lc 'psql -U postgres -d supersunday -f /tmp/migrate_matches_add_cols.sql'
echo "✅ Migration terminée."