<p>Kevin Harwell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6125">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">alembic/res_pjsip: Add "webrtc" configuration option<br><br>When the "webrtc" option was added in res_pjsip it was not added to the alembic<br>scripts. This patch adds the option for alembic.<br><br>ASTERISK-27119 #close<br><br>Change-Id: I3e199f060aea25e193c439fc5cf96be4d3ed1c7b<br>---<br>A contrib/ast-db-manage/config/versions/44ccced114ce_add_webrtc_enabled.py<br>1 file changed, 31 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/6125/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/contrib/ast-db-manage/config/versions/44ccced114ce_add_webrtc_enabled.py b/contrib/ast-db-manage/config/versions/44ccced114ce_add_webrtc_enabled.py<br>new file mode 100644<br>index 0000000..83fdbd9<br>--- /dev/null<br>+++ b/contrib/ast-db-manage/config/versions/44ccced114ce_add_webrtc_enabled.py<br>@@ -0,0 +1,31 @@<br>+"""add_webrtc_enabled<br>+<br>+Revision ID: 44ccced114ce<br>+Revises: 164abbd708c<br>+Create Date: 2017-07-10 17:07:25.926150<br>+<br>+"""<br>+<br>+# revision identifiers, used by Alembic.<br>+revision = '44ccced114ce'<br>+down_revision = '164abbd708c'<br>+<br>+from alembic import op<br>+import sqlalchemy as sa<br>+from sqlalchemy.dialects.postgresql import ENUM<br>+<br>+YESNO_NAME = 'yesno_values'<br>+YESNO_VALUES = ['yes', 'no']<br>+<br>+def upgrade():<br>+ ############################# Enums ##############################<br>+<br>+ # yesno_values have already been created, so use postgres enum object<br>+ # type to get around "already created" issue - works okay with mysql<br>+ yesno_values = ENUM(*YESNO_VALUES, name=YESNO_NAME, create_type=False)<br>+<br>+ op.add_column('ps_endpoints', sa.Column('webrtc_enabled', yesno_values))<br>+<br>+<br>+def downgrade():<br>+ op.drop_column('ps_endpoints', 'webrtc_enabled')<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6125">change 6125</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6125"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3e199f060aea25e193c439fc5cf96be4d3ed1c7b </div>
<div style="display:none"> Gerrit-Change-Number: 6125 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>