Skip to content

Commit

Permalink
fix: order_expiry_time migration error and downgrade function (fossas…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsaicharan1 authored and iamareebjamal committed Aug 2, 2019
1 parent f2078b6 commit 991edc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/versions/2c7ff9781032_.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('events', 'order_expiry_time')
op.drop_column('events_version', 'order_expiry_time')
op.add_column('settings', sa.Column('order_expiry_time', sa.Integer(), default=15, nullable=False))
op.add_column('settings', sa.Column('order_expiry_time', sa.Integer(), server_default='15', nullable=False))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('settings', 'order_expiry_time')
op.add_column('events_version', sa.Column('order_expiry_time', sa.INTEGER(), autoincrement=False, nullable=False))
op.add_column('events', sa.Column('order_expiry_time', sa.INTEGER(), autoincrement=False, nullable=False))
op.add_column('events_version', sa.Column('order_expiry_time', sa.INTEGER(), autoincrement=False, nullable=True))
op.add_column('events', sa.Column('order_expiry_time', sa.INTEGER(), autoincrement=False, nullable=True))
# ### end Alembic commands ###

0 comments on commit 991edc0

Please sign in to comment.