mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-05 23:54:19 +00:00
Allow user to disable all migrations entirely
This commit is contained in:
parent
6c0af38e27
commit
aa76f87828
|
@ -17,6 +17,9 @@ def run_migrations():
|
|||
else:
|
||||
skipped_migrations = data["api"].get("skippedMigrations", [])
|
||||
|
||||
if "DISABLE_ALL" in skipped_migrations:
|
||||
return
|
||||
|
||||
for migration in migrations:
|
||||
if migration.get_migration_name() not in skipped_migrations:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue