Add live to excluded environments in migration

This commit is contained in:
Pea Tyczynska
2019-07-25 16:03:08 +01:00
parent 38bb2c1cf6
commit 5977adef1c

View File

@@ -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