diff --git a/autogpt_platform/backend/migrations/20260123110033_add_folders_in_library/migration.sql b/autogpt_platform/backend/migrations/20260123110033_add_folders_in_library/migration.sql index 130b7fb8c4..83ca008fe6 100644 --- a/autogpt_platform/backend/migrations/20260123110033_add_folders_in_library/migration.sql +++ b/autogpt_platform/backend/migrations/20260123110033_add_folders_in_library/migration.sql @@ -1,18 +1,6 @@ -/* - Warnings: - - - You are about to drop the column `search` on the `StoreListingVersion` table. All the data in the column will be lost. - -*/ --- DropIndex -DROP INDEX "UnifiedContentEmbedding_search_idx"; - -- AlterTable ALTER TABLE "LibraryAgent" ADD COLUMN "folderId" TEXT; --- AlterTable -ALTER TABLE "StoreListingVersion" DROP COLUMN "search"; - -- CreateTable CREATE TABLE "LibraryFolder" ( "id" TEXT NOT NULL, @@ -28,11 +16,6 @@ CREATE TABLE "LibraryFolder" ( CONSTRAINT "LibraryFolder_pkey" PRIMARY KEY ("id") ); --- CreateIndex -CREATE INDEX "LibraryFolder_userId_isDeleted_idx" ON "LibraryFolder"("userId", "isDeleted"); - --- CreateIndex -CREATE INDEX "LibraryFolder_parentId_idx" ON "LibraryFolder"("parentId"); -- CreateIndex CREATE UNIQUE INDEX "LibraryFolder_userId_parentId_name_key" ON "LibraryFolder"("userId", "parentId", "name"); diff --git a/autogpt_platform/backend/schema.prisma b/autogpt_platform/backend/schema.prisma index 3e683815bc..5212ec0a3d 100644 --- a/autogpt_platform/backend/schema.prisma +++ b/autogpt_platform/backend/schema.prisma @@ -435,8 +435,6 @@ model LibraryFolder { LibraryAgents LibraryAgent[] @@unique([userId, parentId, name]) // Name unique per parent per user - @@index([userId, isDeleted]) - @@index([parentId]) } ////////////////////////////////////////////////////////////