misskey/packages/backend/migration/1727542814599-Pgroonga.js
fly_mc 4842124458
Some checks failed
Check SPDX-License-Identifier / check-spdx-license-id (push) Failing after 9s
Check copyright year / check_copyright_year (push) Successful in 7s
Publish Docker image (develop) / Build (linux/amd64) (push) Failing after 5m59s
Publish Docker image (develop) / Build (linux/arm64) (push) Failing after 8m21s
Publish Docker image (develop) / merge (push) Has been skipped
Dockle / dockle (push) Failing after 4m39s
Lint / pnpm_install (push) Successful in 3m22s
Storybook / build (push) Has been skipped
Test (backend) / unit (20.16.0) (push) Failing after 15m24s
Lint / typecheck (backend) (push) Has been cancelled
Lint / lint (backend) (push) Has been cancelled
Lint / lint (frontend) (push) Has been cancelled
Lint / lint (frontend-embed) (push) Has been cancelled
Lint / typecheck (misskey-js) (push) Has been cancelled
Lint / typecheck (sw) (push) Has been cancelled
Test (backend) / e2e (20.16.0) (push) Has been cancelled
Test (frontend) / vitest (20.16.0) (push) Has been cancelled
Test (frontend) / e2e (chrome, 20.16.0) (push) Has been cancelled
Test (production install and build) / production (20.16.0) (push) Has been cancelled
Test (backend) / validate-api-json (20.16.0) (push) Has been cancelled
Lint / lint (frontend-shared) (push) Has been cancelled
Lint / lint (misskey-bubble-game) (push) Has been cancelled
Lint / lint (misskey-js) (push) Has been cancelled
Lint / lint (misskey-reversi) (push) Has been cancelled
Lint / lint (sw) (push) Has been cancelled
change migrate
2024-09-30 22:15:39 +08:00

18 lines
1.0 KiB
JavaScript

export class Pgroonga1727542814599 {
name = 'Pgroonga1727542814599'
async up(queryRunner) {
await queryRunner.query(`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`);
await queryRunner.query(`CREATE INDEX "IDX_7cc8d9b0ee7861b4e5dc86ad85" ON "note" USING "pgroonga" ("cw" pgroonga_varchar_full_text_search_ops_v2)`);
await queryRunner.query(`CREATE INDEX "IDX_065d4d8f3b5adb4a08841eae3c" ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2)`);
await queryRunner.query(`CREATE INDEX "IDX_fcb770976ff8240af5799e3ffc" ON "user_profile" USING "pgroonga" ("description" pgroonga_varchar_full_text_search_ops_v2) `);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_f27f5d88941e57442be75ba9c8"`);
await queryRunner.query(`DROP INDEX "public"."IDX_7cc8d9b0ee7861b4e5dc86ad85"`);
await queryRunner.query(`DROP INDEX "public"."IDX_065d4d8f3b5adb4a08841eae3c"`);
await queryRunner.query(`DROP INDEX "public"."IDX_fcb770976ff8240af5799e3ffc"`);
}
}