Skip to content

Commit f27ed1d

Browse files
committed
fix(scripts): run debug_repo_contributor_roles read-only, omit init_schema
Made-with: Cursor
1 parent 58866e7 commit f27ed1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/debug_repo_contributor_roles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def main() -> None:
2727
config.runtime.storage_adapter,
2828
data_dir=config.runtime.data_dir,
2929
)
30-
storage.init_schema()
30+
# Read-only diagnostic: do not call init_schema(); use existing DB only.
31+
# If the DB is missing or wrong path, reads will fail with a clear error instead of creating an empty DB.
3132

3233
repo_contributor_roles = getattr(config, "repo_contributor_roles", None) or {}
3334
if not repo_contributor_roles:

0 commit comments

Comments
 (0)