Asterisk - The Open Source Telephony Project
GIT-master-f36a736
contrib
ast-db-manage
config
versions
801b9fced8b7_add_generator_data_to_ps_subscription_.py
Go to the documentation of this file.
1
"""add generator_data to ps_subscription_persistence
2
3
Revision ID: 801b9fced8b7
4
Revises: 655054a68ad5
5
Create Date: 2024-09-23 16:44:55.360055
6
7
"""
8
9
# revision identifiers, used by Alembic.
10
revision =
'801b9fced8b7'
11
down_revision =
'655054a68ad5'
12
13
from
alembic
import
op
14
import
sqlalchemy
as
sa
15
16
17
def
upgrade
():
18
with
op.batch_alter_table(
'ps_subscription_persistence'
)
as
batch_op:
19
batch_op.add_column(sa.Column(
'generator_data'
, sa.UnicodeText))
20
21
22
def
downgrade
():
23
with
op.batch_alter_table(
'ps_subscription_persistence'
)
as
batch_op:
24
batch_op.drop_column(
'generator_data'
)
801b9fced8b7_add_generator_data_to_ps_subscription_.upgrade
def upgrade()
Definition:
801b9fced8b7_add_generator_data_to_ps_subscription_.py:17
801b9fced8b7_add_generator_data_to_ps_subscription_.downgrade
def downgrade()
Definition:
801b9fced8b7_add_generator_data_to_ps_subscription_.py:22
Generated on Wed Dec 18 2024 20:04:15 for Asterisk - The Open Source Telephony Project by
1.9.4