594ad25dd1b7_add_total_offers_to_player_track.py 509 B

123456789101112131415161718192021222324
  1. """add total offers to player track
  2. Revision ID: 594ad25dd1b7
  3. Revises: 73c8363fb4ad
  4. Create Date: 2019-09-09 15:58:31.463913
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '594ad25dd1b7'
  10. down_revision = '73c8363fb4ad'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.add_column('personal_market_stat', sa.Column('total_offers', sa.Integer(), nullable=True))
  15. def downgrade():
  16. op.drop_column('personal_market_stat', 'total_offers')