fix: 减少自定义情景中数据库表对 prompt 的约束
This commit is contained in:
9
check_constraints.sql
Normal file
9
check_constraints.sql
Normal 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;
|
||||
Reference in New Issue
Block a user