Skip to content

Commit

Permalink
chore: fix the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Mar 22, 2024
1 parent 842a0d3 commit 1ed3e9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""v0.7.1-wage
"""v0.8.1-wage
Revision ID: 2945fc0e4d84
Revises: 694432f3c689
Expand All @@ -19,11 +19,13 @@

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
op.add_column('apy_time', sa.Column('total_wage', sa.Float(), nullable=True))
op.add_column('apy_time', sa.Column('active_preps', sa.Integer(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
op.drop_column('apy_time', 'active_preps')
op.drop_column('apy_time', 'total_wage')
# ### end Alembic commands ###
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,11 @@ def upgrade():
sa.PrimaryKeyConstraint('timestamp')
)
op.create_index(op.f('ix_commission_time_height'), 'commission_time', ['height'], unique=False)
op.add_column('apy_time', sa.Column('total_wage', sa.Float(), nullable=False))
op.add_column('apy_time', sa.Column('active_preps', sa.Integer(), nullable=False))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('apy_time', 'active_preps')
op.drop_column('apy_time', 'total_wage')
op.drop_index(op.f('ix_commission_time_height'), table_name='commission_time')
op.drop_table('commission_time')
# ### end Alembic commands ###

0 comments on commit 1ed3e9e

Please sign in to comment.