[asterisk-commits] alembic: Add dtls fingerprint column in ps endpoints table (asterisk[15])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 28 07:11:17 CDT 2017
Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/6305 )
Change subject: alembic: Add dtls_fingerprint column in ps_endpoints table
......................................................................
alembic: Add dtls_fingerprint column in ps_endpoints table
The ps_endpoints table was missing the dtls_fingerprint column
introduced with commit adba2a8d7fd.
ASTERISK-27168 #close
Change-Id: I9cb5006f7f50718b5239919562773adabb334cfd
---
A contrib/ast-db-manage/config/versions/b83645976fdd_add_dtls_fingerprint_to_ps_endpoints.py
1 file changed, 23 insertions(+), 0 deletions(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
George Joseph: Looks good to me, approved
diff --git a/contrib/ast-db-manage/config/versions/b83645976fdd_add_dtls_fingerprint_to_ps_endpoints.py b/contrib/ast-db-manage/config/versions/b83645976fdd_add_dtls_fingerprint_to_ps_endpoints.py
new file mode 100644
index 0000000..0efefa2
--- /dev/null
+++ b/contrib/ast-db-manage/config/versions/b83645976fdd_add_dtls_fingerprint_to_ps_endpoints.py
@@ -0,0 +1,23 @@
+"""add dtls_fingerprint to ps_endpoints
+
+Revision ID: b83645976fdd
+Revises: f3d1c5d38b56
+Create Date: 2017-08-03 09:01:49.558111
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'b83645976fdd'
+down_revision = 'f3d1c5d38b56'
+
+from alembic import op
+import sqlalchemy as sa
+from sqlalchemy.dialects.postgresql import ENUM
+
+SHA_HASH_VALUES = ['SHA-1', 'SHA-256']
+
+def upgrade():
+ op.add_column('ps_endpoints', sa.Column('dtls_fingerprint', sa.Enum(*SHA_HASH_VALUES, name='sha_hash_values')))
+
+def downgrade():
+ op.drop_column('ps_endpoints', 'dtls_fingerprint')
--
To view, visit https://gerrit.asterisk.org/6305
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I9cb5006f7f50718b5239919562773adabb334cfd
Gerrit-Change-Number: 6305
Gerrit-PatchSet: 1
Gerrit-Owner: Florian Floimair <f.floimair at commend.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20170828/ec5484ab/attachment-0001.html>
More information about the asterisk-commits
mailing list