f058537a8871_add_registration_date_to_play.py 485 B

123456789101112131415161718192021222324
  1. """add registration date to play
  2. Revision ID: f058537a8871
  3. Revises: 6a81f102bb33
  4. Create Date: 2019-09-05 13:52:42.319013
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = 'f058537a8871'
  10. down_revision = '6a81f102bb33'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.add_column('player', sa.Column('registration_date', sa.Date(), nullable=True))
  15. def downgrade():
  16. op.drop_column('player', 'registration_date')