Revert "fix(backend): remove logic to create workflows column"

This reverts commit 3611029057.
This commit is contained in:
psychedelicious 2023-10-13 21:48:37 +11:00
parent 10ada84404
commit 2d64ee7f9e
No known key found for this signature in database

View File

@ -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