specify table name is necessary for flask upgrade

This commit is contained in:
Emmanuel Viennet 2023-04-06 13:26:28 +02:00
parent 3f8b3f4d0d
commit 1cbab37e2f

View File

@ -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(