summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/config/versions/21e526ad3040_add_pjsip_debug_option.py
blob: 8b77eb7ac619d133f3fc765aaf605515f664404c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""add pjsip debug option

Revision ID: 21e526ad3040
Revises: 2fc7930b41b3
Create Date: 2014-01-30 10:44:02.297455

"""

# revision identifiers, used by Alembic.
revision = '21e526ad3040'
down_revision = '2fc7930b41b3'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('ps_globals', sa.Column('debug', sa.String(40)))

def downgrade():
    with op.batch_alter_table('ps_globals') as batch_op:
        batch_op.drop_column('debug')