summaryrefslogtreecommitdiff
path: root/contrib/ast-db-manage/config/versions/45e3f47c6c44_add_pjsip_endpoint_identifier_order.py
blob: b09acf7a3f7f122836bf894229af577e37f89021 (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 endpoint_identifier_order

Revision ID: 45e3f47c6c44
Revises: 945b1098bdd
Create Date: 2015-03-02 09:32:20.632015

"""

# revision identifiers, used by Alembic.
revision = '45e3f47c6c44'
down_revision = '945b1098bdd'

from alembic import op
import sqlalchemy as sa


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

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