You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
898 B
31 lines
898 B
3 years ago
|
"""Added is_removed column to users and institutions.
|
||
|
|
||
|
Revision ID: 84168f439c55
|
||
|
Revises: c60b7bfaaf85
|
||
|
Create Date: 2021-09-06 10:55:40.303790
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '84168f439c55'
|
||
|
down_revision = 'c60b7bfaaf85'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('institution', sa.Column('is_removed', sa.Boolean(), server_default='true', nullable=False))
|
||
|
op.add_column('registered_user', sa.Column('is_removed', sa.Boolean(), server_default='true', nullable=False))
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_column('registered_user', 'is_removed')
|
||
|
op.drop_column('institution', 'is_removed')
|
||
|
# ### end Alembic commands ###
|