]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
alembic: add missing ps_endpoints columns
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 17 Aug 2022 19:08:24 +0000 (13:08 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 9 Sep 2022 16:34:31 +0000 (11:34 -0500)
The stir_shaken_profile column was added to the
ps_endpoints table.

ASTERISK-29453

Change-Id: Ic52ce30e7951d5bc01396c950bdc2a8b3c1df74b

contrib/ast-db-manage/config/versions/a062185f355c_add_stir_shaken_profile_to_ps_endpoint.py [new file with mode: 0644]

diff --git a/contrib/ast-db-manage/config/versions/a062185f355c_add_stir_shaken_profile_to_ps_endpoint.py b/contrib/ast-db-manage/config/versions/a062185f355c_add_stir_shaken_profile_to_ps_endpoint.py
new file mode 100644 (file)
index 0000000..bf62564
--- /dev/null
@@ -0,0 +1,22 @@
+"""Add Stir Shaken Profile to ps endpoint
+
+Revision ID: a062185f355c
+Revises: 7197536bb68d
+Create Date: 2022-08-17 13:03:50.149536
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'a062185f355c'
+down_revision = '7197536bb68d'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.add_column('ps_endpoints', sa.Column('stir_shaken_profile', sa.String(80)))
+
+
+def downgrade():
+    op.drop_column('ps_endpoints', 'stir_shaken_profile')