1ec3ded43905_fix_player_id_to_biginteger.py 617 B

12345678910111213141516171819202122232425262728
  1. """fix player id to biginteger
  2. Revision ID: 1ec3ded43905
  3. Revises: f058537a8871
  4. Create Date: 2019-09-05 15:54:03.864675
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '1ec3ded43905'
  10. down_revision = 'f058537a8871'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.alter_column('state_work_permit', 'player_id',
  15. existing_type=sa.INTEGER(),
  16. type_=sa.BigInteger())
  17. def downgrade():
  18. op.alter_column('state_work_permit', 'player_id',
  19. existing_type=sa.BigInteger(),
  20. type_=sa.INTEGER())