mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-02 17:48:36 -04:00
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
This commit is contained in:
30
migrations/versions/0393_remove_crown.py
Normal file
30
migrations/versions/0393_remove_crown.py
Normal 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 ###
|
||||
Reference in New Issue
Block a user