migration for jobs storage flag

This commit is contained in:
Brandon Thomas committed 2024-08-28 22:11:26 -04:00
1 parent 4714e5cbee
commit b43c54123f
3 files changed
+16

No files matched your search

@@ -0,0 +1,5 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
ALTER TABLE generic_inference_jobs DROP COLUMN store_in_aws;
@@ -0,0 +1,7 @@
-- noinspection SqlDialectInspectionForFile
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
ALTER TABLE generic_inference_jobs
ADD COLUMN store_in_aws BOOLEAN NOT NULL DEFAULT false
AFTER maybe_cover_image_media_file_token;
@@ -91,6 +91,10 @@ CREATE TABLE generic_inference_jobs (
-- And furthermore, not all download URLs have a cover image.
maybe_cover_image_media_file_token VARCHAR(32) DEFAULT NULL,
-- A migration flag we can control from the backend API service which will tell
-- the worker where to store the results. If false, GCP. If true, AWS.
store_in_aws BOOLEAN NOT NULL DEFAULT FALSE,
-- ========== SUCCESS CASE ==========
-- The type of the object will vary based on the type of the upload,