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