[Asterisk-code-review] alembic: fix erroneous commit for add prune on boot (asterisk[master])
Florian Floimair
asteriskteam at digium.com
Wed Sep 6 06:00:55 CDT 2017
Florian Floimair has uploaded this change for review. ( https://gerrit.asterisk.org/6427
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/27/6427/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 fe9c35e..bea1673 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/6427
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id667304cdf3891b1c2f7d35fab3e2a84026159fa
Gerrit-Change-Number: 6427
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/0ad47907/attachment.html>
More information about the asterisk-code-review
mailing list