功能增加

This commit is contained in:
andy
2026-09-11 15:33:18 +08:00
parent b340fc7ad7
commit f1993eb388
69 changed files with 2243 additions and 162 deletions

View File

@@ -65,6 +65,17 @@ export async function checkDatabaseReadiness(): Promise<void> {
WHERE to_regclass('public.' || table_name) IS NULL
OR NOT has_table_privilege(current_user, 'public.' || table_name, privilege_name)
)
AND EXISTS (
SELECT 1
FROM pg_constraint AS constraint_record
JOIN pg_class AS constrained_table ON constrained_table.oid = constraint_record.conrelid
JOIN pg_namespace AS constrained_schema ON constrained_schema.oid = constrained_table.relnamespace
WHERE constrained_schema.nspname = 'public'
AND constrained_table.relname = 'billing_price_rules'
AND constraint_record.conname = 'billing_price_rules_provider_check'
AND position('seedream' IN pg_get_constraintdef(constraint_record.oid)) > 0
AND position('minimax' IN pg_get_constraintdef(constraint_record.oid)) > 0
)
AND has_function_privilege(
current_user,
'public.claim_generation_jobs(text,integer,integer)',