4d520fcee6c38b57e9cbebb4e81a939dbd9595c4
[asterisk/asterisk.git] / contrib / ast-db-manage / config / versions / 1d50859ed02e_create_accountcode.py
1 """create accountcode
2
3 Revision ID: 1d50859ed02e
4 Revises: 51f8cb66540e
5 Create Date: 2014-07-07 21:07:01.661783
6
7 """
8
9 # revision identifiers, used by Alembic.
10 revision = '1d50859ed02e'
11 down_revision = '51f8cb66540e'
12
13 from alembic import op
14 import sqlalchemy as sa
15
16 def upgrade():
17     op.add_column('ps_endpoints', sa.Column('accountcode', sa.String(20)))
18
19 def downgrade():
20     with op.batch_alter_table('ps_endpoints') as batch_op:
21         batch_op.drop_column('accountcode')