Asterisk - The Open Source Telephony Project
GIT-master-f36a736
contrib
ast-db-manage
config
versions
a06d8f8462d9_add_t38_bind_udptl_to_media_address.py
Go to the documentation of this file.
1
"""add t38_bind_udptl_to_media_address
2
3
Revision ID: a06d8f8462d9
4
Revises: f56d79a9f337
5
Create Date: 2021-09-24 10:03:01.320480
6
7
"""
8
9
# revision identifiers, used by Alembic.
10
revision =
'a06d8f8462d9'
11
down_revision =
'f56d79a9f337'
12
13
from
alembic
import
op
14
import
sqlalchemy
as
sa
15
from
sqlalchemy.dialects.postgresql
import
ENUM
16
17
AST_BOOL_NAME =
'ast_bool_values'
18
AST_BOOL_VALUES = [
'0'
,
'1'
,
19
'off'
,
'on'
,
20
'false'
,
'true'
,
21
'no'
,
'yes'
]
22
23
def
upgrade
():
24
ast_bool_values = ENUM(*AST_BOOL_VALUES, name=AST_BOOL_NAME, create_type=
False
)
25
op.add_column(
'ps_endpoints'
, sa.Column(
't38_bind_udptl_to_media_address'
, ast_bool_values))
26
27
28
def
downgrade
():
29
op.drop_column(
'ps_endpoints'
,
't38_bind_udptl_to_media_address'
)
a06d8f8462d9_add_t38_bind_udptl_to_media_address.upgrade
def upgrade()
Definition:
a06d8f8462d9_add_t38_bind_udptl_to_media_address.py:23
a06d8f8462d9_add_t38_bind_udptl_to_media_address.downgrade
def downgrade()
Definition:
a06d8f8462d9_add_t38_bind_udptl_to_media_address.py:28
Generated on Wed Dec 18 2024 20:04:15 for Asterisk - The Open Source Telephony Project by
1.9.4