mirror of
https://github.com/Kludex/awesome-fastapi-projects.git
synced 2025-05-15 05:37:05 +00:00
Change the index columns in on_conflict statement for repo creation
This commit is contained in:
parent
102de55b12
commit
aa3ee07a90
@ -21,7 +21,7 @@ async def create_or_update_repos_from_source_graph_repos_data(
|
||||
"""
|
||||
insert_statement = sqlalchemy.dialects.sqlite.insert(database.Repo)
|
||||
update_statement = insert_statement.on_conflict_do_update(
|
||||
index_elements=[database.Repo.url, database.Repo.source_graph_repo_id],
|
||||
index_elements=[database.Repo.source_graph_repo_id],
|
||||
set_={
|
||||
"url": insert_statement.excluded.url,
|
||||
"description": insert_statement.excluded.description,
|
||||
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user