0935df5094b3_fix_typos.py 474 B

12345678910111213141516171819202122232425
  1. """fix typos
  2. Revision ID: 0935df5094b3
  3. Revises: 51dfa236bcf1
  4. Create Date: 2021-12-24 15:22:26.954039
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '0935df5094b3'
  10. down_revision = '51dfa236bcf1'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.add_column('nft',
  15. sa.Column('is_active', sa.Boolean(), default=False, nullable=False)
  16. )
  17. def downgrade():
  18. op.drop_column('nft', 'is_active')