Asterisk - The Open Source Telephony Project GIT-master-f36a736
801b9fced8b7_add_generator_data_to_ps_subscription_.py
Go to the documentation of this file.
1"""add generator_data to ps_subscription_persistence
2
3Revision ID: 801b9fced8b7
4Revises: 655054a68ad5
5Create Date: 2024-09-23 16:44:55.360055
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = '801b9fced8b7'
11down_revision = '655054a68ad5'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def 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
23 with op.batch_alter_table('ps_subscription_persistence') as batch_op:
24 batch_op.drop_column('generator_data')