forked from ScoDoc/ScoDoc
41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
"""ajout colonnes tables relations entreprises
|
|
|
|
Revision ID: 01d13209021e
|
|
Revises: e97b2a10f86c
|
|
Create Date: 2022-04-21 21:02:01.319876
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "01d13209021e"
|
|
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))
|
|
op.add_column(
|
|
"are_entreprises", sa.Column("notes_active", sa.Text(), nullable=True)
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("are_entreprises", "notes_active")
|
|
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 ###
|