From ba8a8e8d19a1dda8889700e528768924f6faece6 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 18 Aug 2021 23:02:07 +0200 Subject: [PATCH] Fix: very long (32) formation_codes (pour Lille) --- app/models/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notes.py b/app/models/notes.py index 5852e2952..0d0be6376 100644 --- a/app/models/notes.py +++ b/app/models/notes.py @@ -90,7 +90,7 @@ class ScolarAutorisationInscription(db.Model): db.Integer, db.ForeignKey("identite.id"), ) - formation_code = db.Column(db.String(CODE_STR_LEN), nullable=False) + formation_code = db.Column(db.String(SHORT_STR_LEN), nullable=False) # semestre ou on peut s'inscrire: semestre_id = db.Column(db.Integer) date = db.Column(db.DateTime(timezone=True), server_default=db.func.now())