From 5977adef1c792c1f7afe137eff3809ef4d57dfb5 Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Thu, 25 Jul 2019 16:03:08 +0100 Subject: [PATCH] Add live to excluded environments in migration --- migrations/versions/0300_migrate_org_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/versions/0300_migrate_org_types.py b/migrations/versions/0300_migrate_org_types.py index 239da1b96..9a9d1b4b7 100644 --- a/migrations/versions/0300_migrate_org_types.py +++ b/migrations/versions/0300_migrate_org_types.py @@ -18,7 +18,7 @@ environment = os.environ['NOTIFY_ENVIRONMENT'] def upgrade(): - if environment != "production": + if environment not in ["live", "production"]: op.execute(""" UPDATE organisation @@ -55,7 +55,7 @@ def downgrade(): op.alter_column('organisation_types', 'name', existing_type=sa.String(length=255), type_=sa.VARCHAR()) - if environment != "production": + if environment not in ["live", "production"]: op.execute(""" UPDATE organisation