6c5f808bba7535f60985ceb4993401c62a4b8c10
[asterisk/asterisk.git] / contrib / ast-db-manage / config / versions / 154177371065_add_default_from_user.py
1 """add default_from_user
2
3 Revision ID: 154177371065
4 Revises: 26f10cadc157
5 Create Date: 2015-09-04 14:13:59.195013
6
7 """
8
9 # revision identifiers, used by Alembic.
10 revision = '154177371065'
11 down_revision = '26f10cadc157'
12
13 from alembic import op
14 import sqlalchemy as sa
15
16
17 def upgrade():
18     op.add_column('ps_globals', sa.Column('default_from_user', sa.String(80)))
19
20
21 def downgrade():
22     with op.batch_alter_table('ps_globals') as batch_op:
23         batch_op.drop_column('default_from_user')