Add migration scripts for 3.0.6

This commit is contained in:
Xoconoch
2025-08-17 11:27:31 -06:00
parent d8635400fa
commit 65d26fabac
8 changed files with 863 additions and 203 deletions

View File

@@ -9,6 +9,14 @@ logging.basicConfig(
logger = logging.getLogger(__name__)
# Run DB migrations early so other modules see expected schemas
try:
from routes.migrations import run_migrations_if_needed
run_migrations_if_needed()
logger.info("Database migrations executed (if needed).")
except Exception as e:
logger.error(f"Database migration step failed: {e}", exc_info=True)
try:
from routes.utils.watch.manager import start_watch_manager, stop_watch_manager