mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(db): remove extraneous conflict handling in workflow image records
This commit is contained in:
parent
301a8fef92
commit
2f4f83280b
@ -85,10 +85,9 @@ class SqliteWorkflowImageRecordsStorage(WorkflowImageRecordsStorageBase):
|
||||
self._cursor.execute(
|
||||
"""--sql
|
||||
INSERT INTO workflow_images (workflow_id, image_name)
|
||||
VALUES (?, ?)
|
||||
ON CONFLICT (image_name) DO UPDATE SET workflow_id = ?;
|
||||
VALUES (?, ?);
|
||||
""",
|
||||
(workflow_id, image_name, workflow_id),
|
||||
(workflow_id, image_name),
|
||||
)
|
||||
self._conn.commit()
|
||||
except sqlite3.Error as e:
|
||||
|
Loading…
Reference in New Issue
Block a user