From f27f789269ca38f475290f86134e3e438f98e677 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Wed, 26 Jun 2024 22:37:56 -0400 Subject: [PATCH] sao: alembic sucks sometimes. --- .../versions/a616fd164e40_sao_backport.py | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/core/data/alembic/versions/a616fd164e40_sao_backport.py b/core/data/alembic/versions/a616fd164e40_sao_backport.py index 93b5993..22a9511 100644 --- a/core/data/alembic/versions/a616fd164e40_sao_backport.py +++ b/core/data/alembic/versions/a616fd164e40_sao_backport.py @@ -18,6 +18,28 @@ depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### + op.add_column('sao_static_quest', sa.Column('QuestSceneId', sa.BIGINT(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('SortNo', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('Tutorial', sa.BOOLEAN(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('ColRate', sa.DECIMAL(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('LimitDefault', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('LimitResurrection', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('RewardTableSubId', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('PlayerTraceTableSubId', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('SuccessPlayerExp', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('FailedPlayerExp', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('PairExpRate', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('TrioExpRate', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('SingleRewardVp', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('PairRewardVp', sa.INTEGER(), nullable=False)) + op.add_column('sao_static_quest', sa.Column('TrioRewardVp', sa.INTEGER(), nullable=False)) + op.drop_index('sao_static_quest_uk', table_name='sao_static_quest') + op.drop_column('sao_static_quest', 'id') + op.drop_column('sao_static_quest', 'enabled') + op.drop_column('sao_static_quest', 'version') + op.drop_column('sao_static_quest', 'questSceneId') + op.drop_column('sao_static_quest', 'sortNo') + op.drop_column('sao_static_quest', 'name') op.create_table('sao_static_property', sa.Column('PropertyId', sa.BIGINT(), nullable=False), sa.Column('PropertyTargetType', sa.INTEGER(), nullable=False), @@ -478,28 +500,6 @@ def upgrade(): op.drop_column('sao_static_item_list', 'name') op.drop_column('sao_static_item_list', 'itemTypeId') op.drop_column('sao_static_item_list', 'itemId') - op.add_column('sao_static_quest', sa.Column('QuestSceneId', sa.BIGINT(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('SortNo', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('Tutorial', sa.BOOLEAN(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('ColRate', sa.DECIMAL(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('LimitDefault', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('LimitResurrection', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('RewardTableSubId', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('PlayerTraceTableSubId', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('SuccessPlayerExp', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('FailedPlayerExp', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('PairExpRate', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('TrioExpRate', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('SingleRewardVp', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('PairRewardVp', sa.INTEGER(), nullable=False)) - op.add_column('sao_static_quest', sa.Column('TrioRewardVp', sa.INTEGER(), nullable=False)) - op.drop_index('sao_static_quest_uk', table_name='sao_static_quest') - op.drop_column('sao_static_quest', 'id') - op.drop_column('sao_static_quest', 'enabled') - op.drop_column('sao_static_quest', 'version') - op.drop_column('sao_static_quest', 'questSceneId') - op.drop_column('sao_static_quest', 'sortNo') - op.drop_column('sao_static_quest', 'name') # ### end Alembic commands ###