From 04ba2b29541a9243ea4aeb513efdd5ed20ab24c8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 24 Jun 2022 23:46:37 -0400 Subject: [PATCH] minor: before running migrations, move is_debug_request column --- _migrations/2022-06-25-001916_tts_testing_worker/up.sql | 2 +- _migrations_squashed/tts_tables/tts_inference_jobs.sql | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/_migrations/2022-06-25-001916_tts_testing_worker/up.sql b/_migrations/2022-06-25-001916_tts_testing_worker/up.sql index 14748f0864..8c7fec123d 100644 --- a/_migrations/2022-06-25-001916_tts_testing_worker/up.sql +++ b/_migrations/2022-06-25-001916_tts_testing_worker/up.sql @@ -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); diff --git a/_migrations_squashed/tts_tables/tts_inference_jobs.sql b/_migrations_squashed/tts_tables/tts_inference_jobs.sql index 897d824654..d2c350a9f8 100644 --- a/_migrations_squashed/tts_tables/tts_inference_jobs.sql +++ b/_migrations_squashed/tts_tables/tts_inference_jobs.sql @@ -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.