]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
alembic: fix erroneous commit for add_prune_on_boot
authorFlorian Floimair <f.floimair@commend.com>
Tue, 5 Sep 2017 16:08:02 +0000 (18:08 +0200)
committerFlorian Floimair <f.floimair@commend.com>
Wed, 6 Sep 2017 10:57:42 +0000 (12:57 +0200)
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

contrib/ast-db-manage/config/versions/f3d1c5d38b56_add_prune_on_boot.py

index eccd4412e4fc92735c356a107802ecb1d5c6f6c9..7596646167adc175e80b2982dee48832805ddd00 100644 (file)
@@ -12,7 +12,10 @@ down_revision = '164abbd708c'
 
 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 ##############################