major server manager overhaul

This commit is contained in:
2026-01-09 19:24:41 +00:00
parent 6a667d1019
commit c0ac650625
202 changed files with 325323 additions and 6929 deletions
+19
View File
@@ -0,0 +1,19 @@
from app.database import engine
from sqlalchemy import text
def migrate():
with engine.connect() as conn:
try:
conn.execute(text("ALTER TABLE video_files ADD COLUMN contact_sheet_path VARCHAR"))
print("Added contact_sheet_path")
except Exception as e:
print(f"Skipped contact_sheet_path (probably exists): {e}")
try:
conn.execute(text("ALTER TABLE video_files ADD COLUMN scene_phash VARCHAR"))
print("Added scene_phash")
except Exception as e:
print(f"Skipped scene_phash (probably exists): {e}")
if __name__ == "__main__":
migrate()