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
36 lines
918 B
TypeScript
36 lines
918 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
const prisma = new PrismaClient();
|
|
|
|
async function main() {
|
|
const result: any[] = await prisma.$queryRaw`
|
|
SELECT table_name
|
|
FROM information_schema.tables
|
|
WHERE table_schema = 'platform_schema' AND table_name = 'job_common'
|
|
`;
|
|
|
|
if (result.length > 0) {
|
|
console.log('✅ platform_schema.job_common 表已恢复!');
|
|
|
|
// 检查列结构
|
|
const cols: any[] = await prisma.$queryRaw`
|
|
SELECT column_name, data_type
|
|
FROM information_schema.columns
|
|
WHERE table_schema = 'platform_schema' AND table_name = 'job_common'
|
|
ORDER BY ordinal_position
|
|
`;
|
|
console.log('\n列结构:');
|
|
cols.forEach(c => console.log(` ${c.column_name}: ${c.data_type}`));
|
|
} else {
|
|
console.log('❌ platform_schema.job_common 表不存在');
|
|
}
|
|
}
|
|
|
|
main()
|
|
.catch(console.error)
|
|
.finally(() => prisma.$disconnect());
|
|
|
|
|
|
|
|
|