Fix migration: remove drops of columns that only existed locally

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 14:43:38 -04:00
parent 46d45eebb6
commit 3d6b75c02e

View File

@@ -20,8 +20,6 @@ def upgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('games', schema=None) as batch_op: with op.batch_alter_table('games', schema=None) as batch_op:
batch_op.add_column(sa.Column('steal_active', sa.Boolean(), nullable=True)) batch_op.add_column(sa.Column('steal_active', sa.Boolean(), nullable=True))
batch_op.drop_column('is_steal_mode')
batch_op.drop_column('turn_order')
with op.batch_alter_table('questions', schema=None) as batch_op: with op.batch_alter_table('questions', schema=None) as batch_op:
batch_op.add_column(sa.Column('times_correct', sa.Integer(), nullable=False, server_default='0')) batch_op.add_column(sa.Column('times_correct', sa.Integer(), nullable=False, server_default='0'))
@@ -37,8 +35,6 @@ def downgrade():
batch_op.drop_column('times_correct') batch_op.drop_column('times_correct')
with op.batch_alter_table('games', schema=None) as batch_op: with op.batch_alter_table('games', schema=None) as batch_op:
batch_op.add_column(sa.Column('turn_order', sqlite.JSON(), nullable=True))
batch_op.add_column(sa.Column('is_steal_mode', sa.BOOLEAN(), nullable=True))
batch_op.drop_column('steal_active') batch_op.drop_column('steal_active')
# ### end Alembic commands ### # ### end Alembic commands ###