Standardize tenant DB directory to db with legacy migration

This commit is contained in:
ي
2026-03-12 15:00:20 +05:30
parent bc49329ed6
commit 7557feb830
8 changed files with 87 additions and 44 deletions

View File

@@ -1,6 +1,9 @@
import sqlite3
db_path = r'c:\Users\diksha rawat\Desktop\ALwrity\workspace\workspace_alwrity\db\alwrity_alwrity.db'
from services.database import get_user_db_path
USER_ID = "alwrity"
db_path = get_user_db_path(USER_ID)
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
@@ -15,7 +18,7 @@ if tables:
cols = cursor.fetchall()
col_names = [c[1] for c in cols]
print(f"\nColumns in daily_workflow_plans: {col_names}")
required = ['generation_mode', 'committee_agent_count', 'fallback_used']
for col in required:
if col in col_names: