chaines de taille variable (text) pour tags et codes INE et NIP

This commit is contained in:
Emmanuel Viennet 2021-08-15 22:11:47 +02:00
parent 483df70465
commit 7769b371c7
2 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@ class Identite(db.Model):
statut = db.Column(db.Text()) statut = db.Column(db.Text())
boursier = db.Column(db.Boolean()) # True si boursier ('O' en ScoDoc7) boursier = db.Column(db.Boolean()) # True si boursier ('O' en ScoDoc7)
photo_filename = db.Column(db.Text()) photo_filename = db.Column(db.Text())
code_nip = db.Column(db.String(CODE_STR_LEN), unique=True) code_nip = db.Column(db.Text(), unique=True)
code_ine = db.Column(db.String(CODE_STR_LEN), unique=True) code_ine = db.Column(db.Text(), unique=True)
class Adresse(db.Model): class Adresse(db.Model):

View File

@ -113,7 +113,7 @@ class NotesTag(db.Model):
dept_id = db.Column(db.Integer, db.ForeignKey("departement.id"), index=True) dept_id = db.Column(db.Integer, db.ForeignKey("departement.id"), index=True)
tag_id = db.synonym("id") tag_id = db.synonym("id")
title = db.Column(db.String(SHORT_STR_LEN), nullable=False, unique=True) title = db.Column(db.Text(), nullable=False, unique=True)
# Association tag <-> module # Association tag <-> module