Allow user to disable all migrations entirely
parent
6c0af38e27
commit
aa76f87828
|
@ -17,6 +17,9 @@ def run_migrations():
|
||||||
else:
|
else:
|
||||||
skipped_migrations = data["api"].get("skippedMigrations", [])
|
skipped_migrations = data["api"].get("skippedMigrations", [])
|
||||||
|
|
||||||
|
if "DISABLE_ALL" in skipped_migrations:
|
||||||
|
return
|
||||||
|
|
||||||
for migration in migrations:
|
for migration in migrations:
|
||||||
if migration.get_migration_name() not in skipped_migrations:
|
if migration.get_migration_name() not in skipped_migrations:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue