Fixed issues: - Remove simulateUpload function from DashboardPage Step 3 - Map department to description field when creating KB - Add upload modal in WorkspacePage knowledge assets tab - Fix DocumentUpload import path (../../stores to ../stores) Known issue: Dify API validation error during document upload (file uploaded but DB record failed, needs investigation) Testing: KB creation works, upload dialog opens correctly
24 lines
525 B
TypeScript
24 lines
525 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
const functions: any[] = await prisma.$queryRaw`
|
|
SELECT routine_name, routine_type
|
|
FROM information_schema.routines
|
|
WHERE routine_schema = 'platform_schema'
|
|
ORDER BY routine_name
|
|
`;
|
|
|
|
console.log('platform_schema 中的函数:');
|
|
functions.forEach(f => console.log(` ✅ ${f.routine_name} (${f.routine_type})`));
|
|
}
|
|
|
|
main()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|
|
|
|
|
|
|
|
|