refactor: Improve error handling and user feedback in file upload process for enhanced reliability and user experience

This commit is contained in:
wizardchen
2025-12-01 16:48:04 +08:00
parent eb8bfddfd1
commit 60241a2d29
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,13 @@
-- 14-backfill-models-tenant-id.down.sql
-- Reset tenant_id in models back to 0 for records tied to knowledges entries
BEGIN;
UPDATE models m
JOIN knowledges k ON m.id = k.id
SET m.tenant_id = 0
WHERE m.tenant_id = k.tenant_id;
COMMIT;