Fix: create repo record before files (foreign key constraint)
This commit is contained in:
@@ -97,6 +97,9 @@ def run():
|
||||
print("\n[5/6] Loading into database...")
|
||||
db = GraphDB()
|
||||
|
||||
# Create repo first (empty doc — will be filled in step 6)
|
||||
db.create_repo(name=repo_name, url=TARGET_REPO, language="go", documentation="(generating...)")
|
||||
|
||||
for rel_path, content in go_files.items():
|
||||
info = parsed[rel_path]
|
||||
doc = file_doc_map.get(rel_path, "")
|
||||
|
||||
Reference in New Issue
Block a user