[asterisk-commits] mmichelson: branch 12 r411514 - /branches/12/contrib/ast-db-manage/config/ver...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 28 12:08:58 CDT 2014
Author: mmichelson
Date: Fri Mar 28 12:08:52 2014
New Revision: 411514
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411514
Log:
Add alembic script that adds contact user_agent and endpoint message_context.
Added:
branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py (with props)
Added: branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py
URL: http://svnview.digium.com/svn/asterisk/branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py?view=auto&rev=411514
==============================================================================
--- branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py (added)
+++ branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py Fri Mar 28 12:08:52 2014
@@ -1,0 +1,24 @@
+"""add_missing_pjsip_options
+
+Revision ID: 3855ee4e5f85
+Revises: 4c573e7135bd
+Create Date: 2014-03-28 10:49:04.637730
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '3855ee4e5f85'
+down_revision = '4c573e7135bd'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('ps_endpoints', sa.Column('message_context', sa.String(40)))
+ op.add_column('ps_contacts', sa.Column('user_agent', sa.String(40)))
+
+
+def downgrade():
+ op.drop_column('ps_contacts', 'user_agent')
+ op.drop_column('ps_endpoints', 'message_context')
Propchange: branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: branches/12/contrib/ast-db-manage/config/versions/3855ee4e5f85_add_missing_pjsip_options.py
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list