31 lines
854 B
Python
31 lines
854 B
Python
"""empty message
|
|
|
|
Revision ID: 9882522aafa9
|
|
Revises: e5ef5e4a807b
|
|
Create Date: 2020-07-25 09:34:07.987380
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '9882522aafa9'
|
|
down_revision = 'e5ef5e4a807b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
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! ###
|
|
op.drop_index(op.f('ix_calendar_calendar_type'), table_name='calendar')
|
|
op.drop_column('calendar', 'calendar_type')
|
|
# ### end Alembic commands ###
|