forked from ScoDoc/ScoDoc
chaines de taille variable (text) pour tags et codes INE et NIP
This commit is contained in:
parent
483df70465
commit
7769b371c7
@ -33,8 +33,8 @@ class Identite(db.Model):
|
||||
statut = db.Column(db.Text())
|
||||
boursier = db.Column(db.Boolean()) # True si boursier ('O' en ScoDoc7)
|
||||
photo_filename = db.Column(db.Text())
|
||||
code_nip = db.Column(db.String(CODE_STR_LEN), unique=True)
|
||||
code_ine = db.Column(db.String(CODE_STR_LEN), unique=True)
|
||||
code_nip = db.Column(db.Text(), unique=True)
|
||||
code_ine = db.Column(db.Text(), unique=True)
|
||||
|
||||
|
||||
class Adresse(db.Model):
|
||||
|
@ -113,7 +113,7 @@ class NotesTag(db.Model):
|
||||
dept_id = db.Column(db.Integer, db.ForeignKey("departement.id"), index=True)
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user