Doublement de la taille du nom maximal d'une nuance politique

This commit is contained in:
Emmy D'Anello 2024-06-09 16:56:09 +02:00
parent d6ed4eed17
commit 8d94230674
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def upgrade() -> None:
)
op.create_table('nuance2024',
sa.Column('code', sa.String(length=8), nullable=False),
sa.Column('nom', sa.String(length=32), nullable=False),
sa.Column('nom', sa.String(length=64), nullable=False),
sa.Column('couleur', sa.String(length=7), nullable=False),
sa.PrimaryKeyConstraint('code'),
sa.UniqueConstraint('nom')

View File

@ -22,7 +22,7 @@ class Nuance(Base):
__tablename__ = "nuance2024"
code: Mapped[str] = mapped_column(String(8), primary_key=True)
nom: Mapped[str] = mapped_column(String(32), unique=True)
nom: Mapped[str] = mapped_column(String(64), unique=True)
couleur: Mapped[str] = mapped_column(String(7))
listes: Mapped[List["Liste"]] = relationship("Liste", back_populates="nuance")