mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-18 20:39:46 +00:00
Allow user to disable all migrations entirely
This commit is contained in:
parent
6c0af38e27
commit
aa76f87828
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue