1c688d9a003c_pjsip_voicemail_extension.py 899 B

12345678910111213141516171819202122232425262728
  1. """pjsip voicemail extension
  2. Revision ID: 1c688d9a003c
  3. Revises: 5813202e92be
  4. Create Date: 2016-03-24 22:31:45.537895
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '1c688d9a003c'
  8. down_revision = '5813202e92be'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. op.add_column('ps_globals', sa.Column('default_voicemail_extension', sa.String(40)))
  13. op.add_column('ps_aors', sa.Column('voicemail_extension', sa.String(40)))
  14. op.add_column('ps_endpoints', sa.Column('voicemail_extension', sa.String(40)))
  15. op.add_column('ps_endpoints', sa.Column('mwi_subscribe_replaces_unsolicited', sa.Integer))
  16. def downgrade():
  17. op.drop_column('ps_globals', 'default_voicemail_extension')
  18. op.drop_column('ps_aors', 'voicemail_extension')
  19. op.drop_column('ps_endpoints', 'voicemail_extension')
  20. op.drop_column('ps_endpoints', 'mwi_subscribe_replaces_unsolicited')