From 1cbab37e2f9d3afd8427fadba3e8f8be24b5d834 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 6 Apr 2023 13:26:28 +0200 Subject: [PATCH] specify table name is necessary for flask upgrade --- app/models/ues.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/ues.py b/app/models/ues.py index faa5df20..a8fb667b 100644 --- a/app/models/ues.py +++ b/app/models/ues.py @@ -272,6 +272,7 @@ class DispenseUE(db.Model): la dispense étant une exception. """ + __tablename__ = "dispenseUE" __table_args__ = (db.UniqueConstraint("formsemestre_id", "ue_id", "etudid"),) id = db.Column(db.Integer, primary_key=True) formsemestre_id = formsemestre_id = db.Column(