use PGroonga
This commit is contained in:
parent
ea8a849590
commit
16a700453d
11
packages/backend/migration/1652210810723-PGroonga.js
Normal file
11
packages/backend/migration/1652210810723-PGroonga.js
Normal file
@ -0,0 +1,11 @@
|
||||
export class PGroonga1652210810723 {
|
||||
name = 'PGroonga1652210810723'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_f27f5d88941e57442be75ba9c8"`);
|
||||
}
|
||||
}
|
11
packages/backend/migration/1652213168020-PGroongaUserName.js
Normal file
11
packages/backend/migration/1652213168020-PGroongaUserName.js
Normal file
@ -0,0 +1,11 @@
|
||||
export class PGroongaUserName1652213168020 {
|
||||
name = 'PGroongaUserName1652213168020'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE INDEX "IDX_065d4d8f3b5adb4a08841eae3c" ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2)`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_065d4d8f3b5adb4a08841eae3c"`);
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
export class PGroongaUserDescription1652213556290 {
|
||||
name = 'PGroongaUserDescription1652213556290'
|
||||
|
||||
async up(queryRunner) {
|
||||
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_fcb770976ff8240af5799e3ffc"`);
|
||||
}
|
||||
}
|
16
packages/backend/migration/1727542814489-Pgroonga.js
Normal file
16
packages/backend/migration/1727542814489-Pgroonga.js
Normal file
@ -0,0 +1,16 @@
|
||||
export class Pgroonga1727542814489 {
|
||||
name = 'Pgroonga1727542814489'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`);
|
||||
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_065d4d8f3b5adb4a08841eae3c"`);
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_fcb770976ff8240af5799e3ffc"`);
|
||||
}
|
||||
}
|
51
pgroonga.diff
Normal file
51
pgroonga.diff
Normal file
@ -0,0 +1,51 @@
|
||||
diff --git a/packages/backend/migration/1652210810723-PGroonga.js b/packages/backend/migration/1652210810723-PGroonga.js
|
||||
new file mode 100644
|
||||
index 000000000..bd3fee34e
|
||||
--- /dev/null
|
||||
+++ b/packages/backend/migration/1652210810723-PGroonga.js
|
||||
@@ -0,0 +1,11 @@
|
||||
+export class PGroonga1652210810723 {
|
||||
+ name = 'PGroonga1652210810723'
|
||||
+
|
||||
+ async up(queryRunner) {
|
||||
+ await queryRunner.query(`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`);
|
||||
+ }
|
||||
+
|
||||
+ async down(queryRunner) {
|
||||
+ await queryRunner.query(`DROP INDEX "public"."IDX_f27f5d88941e57442be75ba9c8"`);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/packages/backend/migration/1652213168020-PGroongaUserName.js b/packages/backend/migration/1652213168020-PGroongaUserName.js
|
||||
new file mode 100644
|
||||
index 000000000..9e1e75ece
|
||||
--- /dev/null
|
||||
+++ b/packages/backend/migration/1652213168020-PGroongaUserName.js
|
||||
@@ -0,0 +1,11 @@
|
||||
+export class PGroongaUserName1652213168020 {
|
||||
+ name = 'PGroongaUserName1652213168020'
|
||||
+
|
||||
+ async up(queryRunner) {
|
||||
+ await queryRunner.query(`CREATE INDEX "IDX_065d4d8f3b5adb4a08841eae3c" ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2)`);
|
||||
+ }
|
||||
+
|
||||
+ async down(queryRunner) {
|
||||
+ await queryRunner.query(`DROP INDEX "public"."IDX_065d4d8f3b5adb4a08841eae3c"`);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/packages/backend/migration/1652213556290-PGroongaUserDescription.js b/packages/backend/migration/1652213556290-PGroongaUserDescription.js
|
||||
new file mode 100644
|
||||
index 000000000..7216438ab
|
||||
--- /dev/null
|
||||
+++ b/packages/backend/migration/1652213556290-PGroongaUserDescription.js
|
||||
@@ -0,0 +1,11 @@
|
||||
+export class PGroongaUserDescription1652213556290 {
|
||||
+ name = 'PGroongaUserDescription1652213556290'
|
||||
+
|
||||
+ async up(queryRunner) {
|
||||
+ 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_fcb770976ff8240af5799e3ffc"`);
|
||||
+ }
|
||||
+}
|
Loading…
Reference in New Issue
Block a user