From 3c91184726381df24321036dada8c5f626cecbc6 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 7 Oct 2024 18:21:48 -0400 Subject: [PATCH] collab: Drop mistakenly-added columns from the `usages` table (#18835) This PR drops the `cache_creation_input_tokens_this_month ` and `cache_read_input_tokens_this_month ` columns from the `usages` table in the LLM database. We mistakenly added these in #18834, but these aren't necessary due to the structure of the `usages` table. We weren't actually using these columns anywhere. Release Notes: - N/A --- .../20241007220716_drop_incorrect_usages_columns.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 crates/collab/migrations_llm/20241007220716_drop_incorrect_usages_columns.sql diff --git a/crates/collab/migrations_llm/20241007220716_drop_incorrect_usages_columns.sql b/crates/collab/migrations_llm/20241007220716_drop_incorrect_usages_columns.sql new file mode 100644 index 0000000000..c204451b75 --- /dev/null +++ b/crates/collab/migrations_llm/20241007220716_drop_incorrect_usages_columns.sql @@ -0,0 +1,3 @@ +alter table usages + drop column cache_creation_input_tokens_this_month, + drop column cache_read_input_tokens_this_month;