From 25401c229ce52e00ceaaad6ffa18308c36022585 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Fri, 25 Sep 2026 00:46:43 +1000 Subject: [PATCH] Add AUTO_SCHEMA_UPGRADE toggle --- app/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/config.py b/app/config.py index c98a11d..a3f3af7 100644 --- a/app/config.py +++ b/app/config.py @@ -59,6 +59,10 @@ class Config: # stream straight to disk and never go through Flask's form parser. BACKUP_MAX_UPLOAD = int(os.environ.get('BACKUP_MAX_UPLOAD', 0)) + # Add missing columns automatically at startup. Turn off if you'd + # rather manage schema changes with Flask-Migrate yourself. + AUTO_SCHEMA_UPGRADE = os.environ.get('AUTO_SCHEMA_UPGRADE', '1') != '0' + # Pagination SETS_PER_PAGE = int(os.environ.get('SETS_PER_PAGE', 20))