Asterisk - The Open Source Telephony Project GIT-master-f36a736
64fae6bbe7fb_drop_redundant_index.py
Go to the documentation of this file.
1"""Drop redundant index
2
3Revision ID: 64fae6bbe7fb
4Revises: 1c55c341360f
5Create Date: 2024-09-26 16:17:12.732445
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = '64fae6bbe7fb'
11down_revision = '1c55c341360f'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 with op.batch_alter_table('voicemail_messages') as batch_op:
19 batch_op.drop_index('voicemail_messages_dir')
20
21
23 with op.batch_alter_table('voicemail_messages') as batch_op:
24 batch_op.create_index('voicemail_messages_dir', ['dir'])