0f35d62c414a_fix_player_id_to_big_integer.py 698 B

123456789101112131415161718192021222324252627282930
  1. """fix player id to big integer
  2. Revision ID: 0f35d62c414a
  3. Revises: 386c94d11473
  4. Create Date: 2019-09-10 21:43:24.524417
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '0f35d62c414a'
  10. down_revision = '386c94d11473'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.alter_column('player_market_stat', 'player_id',
  15. existing_type=sa.INTEGER(),
  16. type_=sa.BigInteger(),
  17. existing_nullable=True)
  18. def downgrade():
  19. op.alter_column('player_market_stat', 'player_id',
  20. existing_type=sa.BigInteger(),
  21. type_=sa.INTEGER(),
  22. existing_nullable=True)