1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/migrations/versions/b1e6885bae70_ajout_colonnes_tables_relations_.py

35 lines
1.1 KiB
Python

"""ajout colonnes tables relations entreprises
Revision ID: b1e6885bae70
Revises: e97b2a10f86c
Create Date: 2022-04-20 21:45:42.828853
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b1e6885bae70'
down_revision = 'e97b2a10f86c'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('are_correspondants', sa.Column('civilite', sa.String(length=1), nullable=True))
op.add_column('are_correspondants', sa.Column('origine', sa.Text(), nullable=True))
op.add_column('are_correspondants', sa.Column('notes', sa.Text(), nullable=True))
op.add_column('are_entreprises', sa.Column('active', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('are_entreprises', 'active')
op.drop_column('are_correspondants', 'notes')
op.drop_column('are_correspondants', 'origine')
op.drop_column('are_correspondants', 'civilite')
# ### end Alembic commands ###