flatisfy/migrations/versions/8155b83242eb_add_is_expired.py

25 lines
434 B
Python
Raw Normal View History

2018-10-16 23:07:53 +02:00
"""Add is_expired
Revision ID: 8155b83242eb
Revises:
Create Date: 2018-10-16 22:51:25.442678
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
2021-01-26 14:39:52 +01:00
revision = "8155b83242eb"
2018-10-16 23:07:53 +02:00
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
2021-01-26 14:39:52 +01:00
op.add_column("flats", sa.Column("is_expired", sa.Boolean(), default=False))
2018-10-16 23:07:53 +02:00
def downgrade():
2021-01-26 14:39:52 +01:00
op.drop_column("flats", "is_expired")