parent
c52f24ecc9
commit
38a4bdf06c
@ -1,8 +1,8 @@
|
|||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE "QuestionsQuestion" ADD COLUMN "contentSearch" TSVECTOR
|
ALTER TABLE "QuestionsQuestion" ADD COLUMN "contentSearch" TSVECTOR
|
||||||
GENERATED ALWAYS AS
|
GENERATED ALWAYS AS
|
||||||
to_tsvector('english', coalesce(content, ''))
|
(to_tsvector('english', coalesce(content, '')))
|
||||||
STORED;
|
STORED;
|
||||||
|
|
||||||
-- CreateIndex
|
-- CreateIndex
|
||||||
CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion" USING GIN("textSearch");
|
CREATE INDEX "QuestionsQuestion_contentSearch_idx" ON "QuestionsQuestion" USING GIN("contentSearch");
|
Loading…
Reference in new issue