feat: remove all ai transcription related code and schema

This commit is contained in:
yiling
2026-05-28 14:23:02 +08:00
parent 721a9c13d7
commit 5173bb2a01
25 changed files with 38 additions and 281 deletions
@@ -0,0 +1,24 @@
/*
Warnings:
- The values [transcription] on the enum `AgentType` will be removed. If these variants are still used in the database, this will fail.
- The values [ai_transcription] on the enum `WorkflowTaskType` will be removed. If these variants are still used in the database, this will fail.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "AgentType_new" AS ENUM ('chat', 'autofill', 'embedding');
ALTER TABLE "agents" ALTER COLUMN "type" TYPE "AgentType_new" USING ("type"::text::"AgentType_new");
ALTER TYPE "AgentType" RENAME TO "AgentType_old";
ALTER TYPE "AgentType_new" RENAME TO "AgentType";
DROP TYPE "public"."AgentType_old";
COMMIT;
-- AlterEnum
BEGIN;
CREATE TYPE "WorkflowTaskType_new" AS ENUM ('transcode', 'ai_metadata_autofill', 'chat', 'ai_embedding');
ALTER TABLE "workflow_tasks" ALTER COLUMN "type" TYPE "WorkflowTaskType_new" USING ("type"::text::"WorkflowTaskType_new");
ALTER TYPE "WorkflowTaskType" RENAME TO "WorkflowTaskType_old";
ALTER TYPE "WorkflowTaskType_new" RENAME TO "WorkflowTaskType";
DROP TYPE "public"."WorkflowTaskType_old";
COMMIT;
-2
View File
@@ -101,7 +101,6 @@ enum TeamMemberScope {
enum WorkflowTaskType {
transcode
ai_metadata_autofill
ai_transcription
chat
ai_embedding
}
@@ -626,7 +625,6 @@ enum AgentType {
chat
autofill
embedding
transcription
}
model Agent {