plan(skills): anchor database url to absolute path in roster verification script
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
Ensure settings.database_url resolves to abs_db_path instead of db_filename in pilot-verification-packet-roster.md, aligning with os.environ['DATABASE_URL'] and guaranteeing deterministic database path anchoring during execution.
This commit is contained in:
1 parent
e134d292fd
commit
67732d30c0
1 file changed
+1
-1
@@ -45,7 +45,7 @@ if abs_db_path.exists():
|
|||||||
os.environ['DATABASE_URL'] = f'file:{abs_db_path}'
|
os.environ['DATABASE_URL'] = f'file:{abs_db_path}'
|
||||||
|
|
||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
settings.database_url = f'file:{db_filename}'
|
settings.database_url = f'file:{abs_db_path}'
|
||||||
from app.db.init_db import init_schema_and_seed
|
from app.db.init_db import init_schema_and_seed
|
||||||
from app.db.database import get_db
|
from app.db.database import get_db
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|||||||
Reference in new issue
Block a user