PaperParser/migrations/versions/65ccd5b1039b_delete_flag_fo...

33 lines
815 B
Python
Raw Normal View History

2024-03-13 16:49:37 +10:00
"""Delete flag for users
Revision ID: 65ccd5b1039b
Revises: 11ed77b4dbe8
Create Date: 2024-03-13 16:48:13.991684
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '65ccd5b1039b'
down_revision = '11ed77b4dbe8'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.add_column(sa.Column('delete', sa.Boolean(), nullable=False, server_default="false"))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.drop_column('delete')
# ### end Alembic commands ###