35 lines
965 B
Python
35 lines
965 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 8a31f809b808
|
||
|
Revises: 279578d46236
|
||
|
Create Date: 2023-04-15 16:35:19.380617
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '8a31f809b808'
|
||
|
down_revision = '279578d46236'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
with op.batch_alter_table('appointment', schema=None) as batch_op:
|
||
|
batch_op.drop_index('ix_appointment_email')
|
||
|
batch_op.create_index(batch_op.f('ix_appointment_email'), ['email'], unique=False)
|
||
|
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
with op.batch_alter_table('appointment', schema=None) as batch_op:
|
||
|
batch_op.drop_index(batch_op.f('ix_appointment_email'))
|
||
|
batch_op.create_index('ix_appointment_email', ['email'], unique=False)
|
||
|
|
||
|
# ### end Alembic commands ###
|