mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Add live to excluded environments in migration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user