minor: before running migrations, move is_debug_request column

This commit is contained in:
Brandon Thomas committed 2022-06-24 23:46:37 -04:00
1 parent acfab87b5c
commit 04ba2b2954
2 files changed
+4 -6

No files matched your search

@@ -4,7 +4,7 @@
ALTER TABLE tts_inference_jobs
ADD COLUMN is_debug_request BOOLEAN NOT NULL DEFAULT FALSE
AFTER raw_inference_text;
AFTER is_for_twitch;
ALTER TABLE tts_inference_jobs
ADD INDEX index_is_debug_request (is_debug_request);
@@ -34,11 +34,6 @@ CREATE TABLE tts_inference_jobs (
-- The raw, unprocessed user input.
raw_inference_text TEXT NOT NULL,
-- ========== INFERENCE METADATA, DC, ROUTING, DEBUGGING ==========
-- If true, the request gets routed to a special "debug" worker.
is_debug_request BOOLEAN NOT NULL DEFAULT FALSE,
-- ========== CREATOR DETAILS ==========
-- Foreign key to user
@@ -67,6 +62,9 @@ CREATE TABLE tts_inference_jobs (
is_from_api BOOLEAN NOT NULL DEFAULT FALSE,
is_for_twitch BOOLEAN NOT NULL DEFAULT FALSE,
-- If true, the request gets routed to a special "debug" worker.
is_debug_request BOOLEAN NOT NULL DEFAULT FALSE,
-- ========== JOB SYSTEM DETAILS ==========
-- Jobs begin as "pending", then transition to other states.