From 839eb31d65e5b056fdf9c533e6a93206da7afb9d Mon Sep 17 00:00:00 2001 From: hpkoh <53825802+hpkoh@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:17:12 +0800 Subject: [PATCH] [questions][fix] remove erronous migration file (#437) --- .../20221025013857_add_full_text_search/migration.sql | 8 -------- .../prisma/migrations/20221025014050_/migration.sql | 8 -------- 2 files changed, 16 deletions(-) delete mode 100644 apps/portal/prisma/migrations/20221025013857_add_full_text_search/migration.sql delete mode 100644 apps/portal/prisma/migrations/20221025014050_/migration.sql diff --git a/apps/portal/prisma/migrations/20221025013857_add_full_text_search/migration.sql b/apps/portal/prisma/migrations/20221025013857_add_full_text_search/migration.sql deleted file mode 100644 index 8f58d7f9..00000000 --- a/apps/portal/prisma/migrations/20221025013857_add_full_text_search/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ --- AlterTable -ALTER TABLE "QuestionsQuestion" ADD COLUMN "contentSearch" TSVECTOR - GENERATED ALWAYS AS - (to_tsvector('english', coalesce(content, ''))) - STORED; - --- CreateIndex -CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion" USING GIN("contentSearch"); diff --git a/apps/portal/prisma/migrations/20221025014050_/migration.sql b/apps/portal/prisma/migrations/20221025014050_/migration.sql deleted file mode 100644 index 6d3a3407..00000000 --- a/apps/portal/prisma/migrations/20221025014050_/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ --- DropIndex -DROP INDEX "QuestionsQuestion_contentSearch_idx"; - --- AlterTable -ALTER TABLE "QuestionsQuestion" ALTER COLUMN "contentSearch" DROP DEFAULT; - --- CreateIndex -CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion"("contentSearch");