[asterisk-commits] file: branch file/pjsip-subscription-persistence r415341 - /team/file/pjsip-s...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 6 11:18:32 CDT 2014


Author: file
Date: Fri Jun  6 11:18:29 2014
New Revision: 415341

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=415341
Log:
Add table for PJSIP subscription persistence.

Added:
    team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py   (with props)

Added: team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py
URL: http://svnview.digium.com/svn/asterisk/team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py?view=auto&rev=415341
==============================================================================
--- team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py (added)
+++ team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py Fri Jun  6 11:18:29 2014
@@ -1,0 +1,36 @@
+"""create pjsip subscription persistence table
+
+Revision ID: c6d929b23a8
+Revises: e96a0b8071c
+Create Date: 2014-06-06 02:17:38.660447
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'c6d929b23a8'
+down_revision = 'e96a0b8071c'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.create_table(
+        'ps_subscription_persistence',
+        sa.Column('id', sa.String(40), nullable=False, unique=True),
+	sa.Column('packet', sa.String(2048)),
+	sa.Column('src_name', sa.String(128)),
+	sa.Column('src_port', sa.Integer),
+	sa.Column('transport_key', sa.String(64)),
+	sa.Column('local_name', sa.String(128)),
+	sa.Column('local_port', sa.Integer),
+	sa.Column('cseq', sa.Integer),
+	sa.Column('tag', sa.String(128)),
+	sa.Column('endpoint', sa.String(40)),
+	sa.Column('expires', sa.Integer),
+    )
+
+    op.create_index('ps_subscription_persistence_id', 'ps_subscription_persistence', ['id'])
+
+def downgrade():
+	op.drop_table('ps_subscription_persistence')

Propchange: team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/file/pjsip-subscription-persistence/contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list