ajout des disponibilités de joueurs et ajouts d'un tableau qui montre les dispo des joueurs lors de la création d'un match

This commit is contained in:
cedrick2711
2026-07-14 18:46:45 -04:00
parent 4e7ecf0ab9
commit b19d5db8db
17 changed files with 1706 additions and 218 deletions
+3 -3
View File
@@ -32,11 +32,11 @@ def create_app():
with app.app_context():
import models
from models import User
from models import User, MatchParticipant
try:
# Check if the database schema is up to date by testing a query
# that uses all model columns
db.session.execute(text('SELECT games FROM users LIMIT 1'))
# that uses all model columns including team_side for match participants
db.session.execute(text('SELECT games, team_side FROM match_participants LIMIT 1'))
db.create_all()
except Exception:
# If there's a schema mismatch, drop and recreate all tables