migration.sql 468 B

1234567891011121314151617
  1. -- AlterTable
  2. ALTER TABLE
  3. "TeamCollection"
  4. ADD
  5. titleSearch tsvector GENERATED ALWAYS AS (to_tsvector('english', title)) STORED;
  6. -- AlterTable
  7. ALTER TABLE
  8. "TeamRequest"
  9. ADD
  10. titleSearch tsvector GENERATED ALWAYS AS (to_tsvector('english', title)) STORED;
  11. -- CreateIndex
  12. CREATE INDEX "TeamCollection_textSearch_idx" ON "TeamCollection" USING GIN (titleSearch);
  13. -- CreateIndex
  14. CREATE INDEX "TeamRequest_textSearch_idx" ON "TeamRequest" USING GIN (titleSearch);