collab: Add mode column to subscription_usage_meters table (#29603)

This PR adds a `mode` column to the `subscription_usage_meters` table in
the LLM database.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-29 10:58:34 -04:00 committed by GitHub
parent b2df395918
commit c168fc335c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,6 @@
alter table subscription_usage_meters
add column mode text not null default 'normal';
drop index uix_subscription_usage_meters_on_subscription_usage_model;
create unique index uix_subscription_usage_meters_on_subscription_usage_model_mode on subscription_usage_meters (subscription_usage_id, model_id, mode);