From 646f56dcd3ba497f3d254e050cec1545ef08a2aa Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 13 May 2024 19:52:41 -0700 Subject: [PATCH] migration: widen routing tag --- .../down.sql | 6 ++++++ .../up.sql | 6 ++++++ _sql/migrations_squashed/generic_inference_jobs.sql | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 _sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/down.sql create mode 100644 _sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/up.sql diff --git a/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/down.sql b/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/down.sql new file mode 100644 index 0000000000..985aebc3b9 --- /dev/null +++ b/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/down.sql @@ -0,0 +1,6 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +ALTER TABLE generic_inference_jobs + CHANGE maybe_routing_tag maybe_routing_tag VARCHAR(32) DEFAULT NULL; diff --git a/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/up.sql b/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/up.sql new file mode 100644 index 0000000000..85dfb3c214 --- /dev/null +++ b/_sql/migrations/2024-05-14-024653_alter_inference_jobs_widen_routing_column/up.sql @@ -0,0 +1,6 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +ALTER TABLE generic_inference_jobs + CHANGE maybe_routing_tag maybe_routing_tag VARCHAR(64) DEFAULT NULL; \ No newline at end of file diff --git a/_sql/migrations_squashed/generic_inference_jobs.sql b/_sql/migrations_squashed/generic_inference_jobs.sql index aebaaff140..12795dbb1f 100644 --- a/_sql/migrations_squashed/generic_inference_jobs.sql +++ b/_sql/migrations_squashed/generic_inference_jobs.sql @@ -166,7 +166,7 @@ CREATE TABLE generic_inference_jobs ( -- The tag is typically added via a special HTTP header when the work -- is enqueued. In practice, this means we can canary deploy or cordon -- off special workers to handle certain jobs. - maybe_routing_tag VARCHAR(64) DEFAULT NULL, -- TODO(bt,2024-05-13): Widen column 32 --> 64 !!! + maybe_routing_tag VARCHAR(64) DEFAULT NULL, -- ========== JOB SYSTEM DETAILS ==========