From cdc7a70fe7d1d1688b1ecc78a251d8e9db046704 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 17 Oct 2017 23:56:07 -0400 Subject: [PATCH] Fixing migration script for upgrade (#417) --- migrations/versions/e62fd69bd417_use_strings_for_key_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/versions/e62fd69bd417_use_strings_for_key_types.py b/migrations/versions/e62fd69bd417_use_strings_for_key_types.py index 976458f..bf1629b 100644 --- a/migrations/versions/e62fd69bd417_use_strings_for_key_types.py +++ b/migrations/versions/e62fd69bd417_use_strings_for_key_types.py @@ -25,8 +25,8 @@ def upgrade(): existing_type=sa.INTEGER(), type_=sa.String(length=80), existing_nullable=True) - op.execute("UPDATE `keys` set key_type='static' WHERE key_type=0") - op.execute("UPDATE `keys` set key_type='regex' WHERE key_type=1") + op.execute("UPDATE `keys` set key_type='static' WHERE key_type='0'") + op.execute("UPDATE `keys` set key_type='regex' WHERE key_type='1'") elif url.startswith('postgres'): op.alter_column('keys', 'key_type', existing_type=sa.INTEGER(),