Doublement de la taille du nom maximal d'une nuance politique
This commit is contained in:
		@@ -29,7 +29,7 @@ def upgrade() -> None:
 | 
				
			|||||||
    )
 | 
					    )
 | 
				
			||||||
    op.create_table('nuance2024',
 | 
					    op.create_table('nuance2024',
 | 
				
			||||||
    sa.Column('code', sa.String(length=8), nullable=False),
 | 
					    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.Column('couleur', sa.String(length=7), nullable=False),
 | 
				
			||||||
    sa.PrimaryKeyConstraint('code'),
 | 
					    sa.PrimaryKeyConstraint('code'),
 | 
				
			||||||
    sa.UniqueConstraint('nom')
 | 
					    sa.UniqueConstraint('nom')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ class Nuance(Base):
 | 
				
			|||||||
    __tablename__ = "nuance2024"
 | 
					    __tablename__ = "nuance2024"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    code: Mapped[str] = mapped_column(String(8), primary_key=True)
 | 
					    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))
 | 
					    couleur: Mapped[str] = mapped_column(String(7))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    listes: Mapped[List["Liste"]] = relationship("Liste", back_populates="nuance")
 | 
					    listes: Mapped[List["Liste"]] = relationship("Liste", back_populates="nuance")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user