Doublement de la taille du nom maximal d'une nuance politique
This commit is contained in:
parent
d6ed4eed17
commit
8d94230674
@ -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')
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user