Šolar update.

This commit is contained in:
msinkec
2021-09-16 17:25:20 +02:00
parent 788f3bc3eb
commit d60ef26741
9 changed files with 595 additions and 243 deletions

View File

@@ -0,0 +1,30 @@
"""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 ###