#!/usr/bin/env bash
set -euo pipefail
echo "📦 Ajout des colonnes score_a/score_b si manquantes…"
docker compose cp backend/sql/add_scores_columns.sql db:/tmp/add_scores_columns.sql
docker compose exec db sh -lc 'psql -U postgres -d supersunday -f /tmp/add_scores_columns.sql'
echo "✅ OK."
