"""Delete unnecessary columns Revision ID: 4fec22c35530 Revises: 610854a6e2a0 Create Date: 2023-05-28 08:10:27.689070 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4fec22c35530' down_revision = '610854a6e2a0' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('bought', schema=None) as batch_op: batch_op.drop_column('registered') with op.batch_alter_table('login_token', schema=None) as batch_op: batch_op.drop_column('paid') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('login_token', schema=None) as batch_op: batch_op.add_column(sa.Column('paid', sa.BIGINT(), server_default=sa.text("'0'::bigint"), autoincrement=False, nullable=False)) with op.batch_alter_table('bought', schema=None) as batch_op: batch_op.add_column(sa.Column('registered', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False)) # ### end Alembic commands ###