ScoDoc/migrations/versions/cf29790ca6f6_ajout_prenom_civilite__etat_civil.py
2023-04-19 08:14:00 +02:00

34 lines
869 B
Python

"""ajout (prenom,civilite)_etat_civil
Revision ID: cf29790ca6f6
Revises: 6520faf67508
Create Date: 2023-02-25 10:55:42.831526
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "cf29790ca6f6"
down_revision = "6520faf67508"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - checked ###
op.add_column(
"identite",
sa.Column("civilite_etat_civil", sa.Text(), nullable=True, server_default="X"),
)
op.add_column("identite", sa.Column("prenom_etat_civil", sa.Text(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - checked ###
op.drop_column("identite", "prenom_etat_civil")
op.drop_column("identite", "civilite_etat_civil")
# ### end Alembic commands ###