[Asterisk-code-review] alembic: fix erroneous commit for add prune on boot (asterisk[13])

Florian Floimair asteriskteam at digium.com
Wed Sep 6 05:59:45 CDT 2017


Florian Floimair has uploaded this change for review. ( https://gerrit.asterisk.org/6425


Change subject: alembic: fix erroneous commit for add_prune_on_boot
......................................................................

alembic: fix erroneous commit for add_prune_on_boot

Added include for postgresql ENUM type and
redefined values in the same way as in the
other migration scripts.

ASTERISK-27254 #close

Change-Id: Id667304cdf3891b1c2f7d35fab3e2a84026159fa
---
M contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/6425/1

diff --git a/contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py b/contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py
index eccd441..7596646 100644
--- a/contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py
+++ b/contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py
@@ -12,7 +12,10 @@
 
 from alembic import op
 import sqlalchemy as sa
+from sqlalchemy.dialects.postgresql import ENUM
 
+YESNO_NAME = 'yesno_values'
+YESNO_VALUES = ['yes', 'no']
 
 def upgrade():
     ############################# Enums ##############################

-- 
To view, visit https://gerrit.asterisk.org/6425
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id667304cdf3891b1c2f7d35fab3e2a84026159fa
Gerrit-Change-Number: 6425
Gerrit-PatchSet: 1
Gerrit-Owner: Florian Floimair <f.floimair at commend.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170906/b72be0fb/attachment.html>


More information about the asterisk-code-review mailing list