Skip to content
Snippets Groups Projects
Commit 2ee644aa authored by Florian Floimair's avatar Florian Floimair
Browse files

alembic: Add dtls_fingerprint column in ps_endpoints table

The ps_endpoints table was missing the dtls_fingerprint column
introduced with commit adba2a8d.

ASTERISK-27168 #close

Change-Id: I9cb5006f7f50718b5239919562773adabb334cfd
parent 7937d5b8
No related branches found
No related tags found
No related merge requests found
"""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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment