Premiere verison route admin operationnelle

This commit is contained in:
karim hassan
2025-08-25 12:39:54 +00:00
parent eabd0aa50f
commit 38ea5c7da0
21 changed files with 692 additions and 53 deletions

13
apply_matches_sql.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
echo "📦 Copie SQL…"
docker compose cp backend/sql/matches.sql db:/tmp/matches.sql
docker compose cp backend/sql/seed_matches.sql db:/tmp/seed_matches.sql || true
echo "🗃 Applique matches.sql…"
docker compose exec db sh -lc 'psql -U postgres -d supersunday -f /tmp/matches.sql'
echo "🌱 (Optionnel) seed demo…"
docker compose exec db sh -lc 'psql -U postgres -d supersunday -f /tmp/seed_matches.sql' || true
echo "✅ Terminé."