#224 remove crown (#228)

Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
This commit is contained in:
Kenneth Kehl
2023-04-11 13:29:37 -07:00
committed by GitHub
parent 25a89458c8
commit 27d86c949a
16 changed files with 46 additions and 88 deletions

View File

@@ -0,0 +1,30 @@
"""
Revision ID: 0393_remove_crown
Revises: 0392_drop_letter_permissions
Create Date: 2023-04-10 14:13:38.207790
"""
from alembic import op
import sqlalchemy as sa
revision = '0393_remove_crown'
down_revision = '0392_drop_letter_permissions'
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('organisation', 'crown')
op.drop_column('organisation_types', 'is_crown')
op.drop_column('services', 'crown')
op.drop_column('services_history', 'crown')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('services_history', sa.Column('crown', sa.BOOLEAN(), autoincrement=False, nullable=True))
op.add_column('services', sa.Column('crown', sa.BOOLEAN(), autoincrement=False, nullable=True))
op.add_column('organisation_types', sa.Column('is_crown', sa.BOOLEAN(), autoincrement=False, nullable=True))
op.add_column('organisation', sa.Column('crown', sa.BOOLEAN(), autoincrement=False, nullable=True))
# ### end Alembic commands ###