mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Revert "fix(backend): remove logic to create workflows column"
This reverts commit 3611029057
.
This commit is contained in:
parent
10ada84404
commit
2d64ee7f9e
@ -76,6 +76,16 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):
|
||||
"""
|
||||
)
|
||||
|
||||
if "workflow" not in columns:
|
||||
self._cursor.execute(
|
||||
"""--sql
|
||||
ALTER TABLE images
|
||||
ADD COLUMN workflow_id TEXT;
|
||||
-- TODO: This requires a migration:
|
||||
-- FOREIGN KEY (workflow_id) REFERENCES workflows (workflow_id) ON DELETE SET NULL;
|
||||
"""
|
||||
)
|
||||
|
||||
# Create the `images` table indices.
|
||||
self._cursor.execute(
|
||||
"""--sql
|
||||
|
Loading…
Reference in New Issue
Block a user