Skip to content

Commit

Permalink
Fix for creator foreign key on milestones, refs #31
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 21, 2020
1 parent 02e38b3 commit 2cf75a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_to_sqlite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def save_issues(db, issues, repo):
# So we can define the foreign key from milestones:
db["users"].create({"id": int}, pk="id")
db["milestones"].create(
{"id": int, "title": str, "description": str, "repo": int},
{"id": int, "title": str, "description": str, "creator": int, "repo": int},
pk="id",
foreign_keys=(("repo", "repos", "id"), ("creator", "users", "id")),
)
Expand Down

0 comments on commit 2cf75a0

Please sign in to comment.