calendarwatch_frontend/database/migrations/versions/9882522aafa9_.py

31 lines
854 B
Python
Raw Normal View History

"""empty message
2020-07-25 11:41:12 +02:00
Revision ID: 9882522aafa9
Revises: e5ef5e4a807b
2020-07-25 11:41:12 +02:00
Create Date: 2020-07-25 09:34:07.987380
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
2020-07-25 11:41:12 +02:00
revision = '9882522aafa9'
down_revision = 'e5ef5e4a807b'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2020-07-25 11:41:12 +02:00
op.add_column('calendar', sa.Column('calendar_type', sa.String(length=32), nullable=True))
op.create_index(op.f('ix_calendar_calendar_type'), 'calendar', ['calendar_type'], unique=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
2020-07-25 11:41:12 +02:00
op.drop_index(op.f('ix_calendar_calendar_type'), table_name='calendar')
op.drop_column('calendar', 'calendar_type')
# ### end Alembic commands ###