Files
NianAIGC/database/migrations/0004_seedream_billing_provider.sql
2026-08-21 13:44:56 +08:00

15 lines
501 B
PL/PgSQL

-- Allow the independently routed Ark Seedream image provider in the durable
-- billing catalog. Keep the historical migration immutable and widen only the
-- existing provider constraint.
begin;
alter table public.billing_price_rules
drop constraint if exists billing_price_rules_provider_check;
alter table public.billing_price_rules
add constraint billing_price_rules_provider_check
check (provider in ('volcengine-visual', 'evolink', 'seedance', 'seedream', 'bailian', 'mock'));
commit;