1
0
forked from ScoDoc/ScoDoc

Fix: very long (32) formation_codes (pour Lille)

This commit is contained in:
Emmanuel Viennet 2021-08-18 23:02:07 +02:00
parent 086cb8f8f5
commit ba8a8e8d19

View File

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