Files
Aether/crates/aether-data/migrations/20260422120000_add_api_key_usage_stats.sql
T

9 lines
222 B
SQL
Raw Normal View History

ALTER TABLE public.api_keys
ADD COLUMN IF NOT EXISTS total_tokens bigint DEFAULT '0'::bigint NOT NULL;
UPDATE public.provider_api_keys
SET
fingerprint = NULL,
updated_at = NOW()
WHERE fingerprint IS NOT NULL;