fix: 减少自定义情景中数据库表对 prompt 的约束

This commit is contained in:
hhs
2026-06-23 22:58:02 +08:00
parent 9523fe6650
commit 5ef059eb40
4 changed files with 66 additions and 0 deletions

9
check_constraints.sql Normal file
View File

@@ -0,0 +1,9 @@
-- 检查 user_scenarios 表的所有约束
SELECT
con.conname AS constraint_name,
con.contype AS constraint_type,
pg_get_constraintdef(con.oid) AS constraint_definition
FROM pg_constraint con
JOIN pg_class rel ON rel.oid = con.conrelid
WHERE rel.relname = 'user_scenarios'
ORDER BY con.conname;