Corrections longueur code département

This commit is contained in:
Emmy D'Anello 2024-06-09 17:07:54 +02:00
parent 3c0b03c576
commit 40e1c40e26
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -104,7 +104,7 @@ def upgrade() -> None:
)
op.create_table('circonscription',
sa.Column('id', sa.String(length=6), nullable=False),
sa.Column('departement_code', sa.String(length=2), nullable=False),
sa.Column('departement_code', sa.String(length=3), nullable=False),
sa.Column('numero', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['departement_code'], ['departement.code_insee'], ),
sa.PrimaryKeyConstraint('id')
@ -119,7 +119,7 @@ def upgrade() -> None:
)
op.create_table('resultats2024_departement',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('dpt_id', sa.String(length=2), nullable=False),
sa.Column('dpt_id', sa.String(length=3), nullable=False),
sa.Column('resultats_region_id', sa.Integer(), nullable=False),
sa.Column('inscrits', sa.Integer(), nullable=False),
sa.Column('votants', sa.Integer(), nullable=False),