Skip to content

Commit 1aaebb9

Browse files
committed
Fix saving pipelines with existing commits table
1 parent bb31968 commit 1aaebb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab_to_sqlite/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def fetch_pipelines(
130130
def save_pipeline(db: Database, pipeline: dict, host: str) -> None:
131131
if "projects" not in db.table_names():
132132
db["projects"].create({"id": int}, pk="id")
133+
if "commits" not in db.table_names():
134+
db["commits"].create({"id": int}, pk="id")
133135

134136
data = {
135137
"id": pipeline["id"].split("/")[-1],

0 commit comments

Comments
 (0)