From d44897bc8fccec8df2e8b967bf7f04c6b0dc6a7a Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Fri, 13 Sep 2024 21:07:15 +0200 Subject: [PATCH] Old tablename Was too lazy to generate file again. --- alembic/versions/676b8ac0e60a_stations.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/alembic/versions/676b8ac0e60a_stations.py b/alembic/versions/676b8ac0e60a_stations.py index ec313d46b..957e3fcfc 100644 --- a/alembic/versions/676b8ac0e60a_stations.py +++ b/alembic/versions/676b8ac0e60a_stations.py @@ -49,18 +49,18 @@ def upgrade(): sa.Column('last_updated', mapadroid.db.TZDateTime.TZDateTime(), nullable=False), sa.PrimaryKeyConstraint('station_id') ) - op.create_index(op.f('ix_wr_station_battle_pokemon_id'), 'wr_station', ['battle_pokemon_id'], unique=False) - op.create_index(op.f('ix_wr_station_battle_window_end'), 'wr_station', ['battle_window_end'], unique=False) - op.create_index(op.f('ix_wr_station_end_time'), 'wr_station', ['end_time'], unique=False) - op.create_index(op.f('ix_wr_station_last_updated'), 'wr_station', ['last_updated'], unique=False) + op.create_index(op.f('ix_station_battle_pokemon_id'), 'station', ['battle_pokemon_id'], unique=False) + op.create_index(op.f('ix_station_battle_window_end'), 'station', ['battle_window_end'], unique=False) + op.create_index(op.f('ix_station_end_time'), 'station', ['end_time'], unique=False) + op.create_index(op.f('ix_station_last_updated'), 'station', ['last_updated'], unique=False) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.drop_index(op.f('ix_wr_station_last_updated'), table_name='wr_station') - op.drop_index(op.f('ix_wr_station_end_time'), table_name='wr_station') - op.drop_index(op.f('ix_wr_station_battle_window_end'), table_name='wr_station') - op.drop_index(op.f('ix_wr_station_battle_pokemon_id'), table_name='wr_station') + op.drop_index(op.f('ix_station_last_updated'), table_name='station') + op.drop_index(op.f('ix_station_end_time'), table_name='station') + op.drop_index(op.f('ix_station_battle_window_end'), table_name='station') + op.drop_index(op.f('ix_station_battle_pokemon_id'), table_name='station') op.drop_table('station') # ### end Alembic commands ###