[svn-commits] wdoekes: branch 12 r423128 - /branches/12/contrib/ast-db-manage/config/versions/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Sep 15 05:45:28 CDT 2014


Author: wdoekes
Date: Mon Sep 15 05:45:23 2014
New Revision: 423128

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=423128
Log:
contrib: Fix verifyi typo in alembic DB script ps_transport table.

Reported by: Zogot (on IRC)
Patches:
  tmp.diff uploaded by Zogot, cleaned up by me.

Added:
    branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py   (with props)

Added: branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py
URL: http://svnview.digium.com/svn/asterisk/branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py?view=auto&rev=423128
==============================================================================
--- branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py (added)
+++ branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py Mon Sep 15 05:45:23 2014
@@ -1,0 +1,29 @@
+"""Fix pjsip transports verify column
+
+Revision ID: 5950038a6ead
+Revises: 5139253c0423
+Create Date: 2014-09-15 06:21:35.047314
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '5950038a6ead'
+down_revision = '5139253c0423'
+
+from alembic import op
+from sqlalchemy.dialects.postgresql import ENUM
+
+YESNO_NAME = 'yesno_values'
+YESNO_VALUES = ['yes', 'no']
+
+
+def upgrade():
+    yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
+    op.alter_column('ps_transports', 'verifiy_server', type_=yesno_values,
+                    new_column_name='verify_server')
+
+
+def downgrade():
+    yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)
+    op.alter_column('ps_transports', 'verify_server', type_=yesno_values,
+                    new_column_name='verifiy_server')

Propchange: branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: branches/12/contrib/ast-db-manage/config/versions/5950038a6ead_fix_pjsip_verifiy_typo.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the svn-commits mailing list