Asterisk - The Open Source Telephony Project  18.5.0
5813202e92be_add_contact_expiration_check_interval_.py
Go to the documentation of this file.
1 """Add contact_expiration_check_interval to ps_globals
2 
3 Revision ID: 5813202e92be
4 Revises: 3bcc0b5bc2c9
5 Create Date: 2016-03-08 21:52:21.372310
6 
7 """
8 
9 # revision identifiers, used by Alembic.
10 revision = '5813202e92be'
11 down_revision = '3bcc0b5bc2c9'
12 
13 from alembic import op
14 import sqlalchemy as sa
15 
16 def upgrade():
17  op.add_column('ps_globals', sa.Column('contact_expiration_check_interval', sa.Integer))
18 
19 def downgrade():
20  op.drop_column('ps_globals', 'contact_expiration_check_interval')