1
0
mirror of synced 2024-11-27 23:40:48 +01:00

sao: alembic sucks sometimes.

This commit is contained in:
Kevin Trocolli 2024-06-26 22:37:56 -04:00
parent 7206af83cb
commit f27f789269

View File

@ -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 ###