From 6b21c249d44c746dd39ed9bb9b907b74061cf232 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Thu, 1 May 2025 11:36:01 +0900 Subject: [PATCH] update comment --- packages/backend/src/models/Note.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/models/Note.ts b/packages/backend/src/models/Note.ts index 4f8a0f9184..d10172072b 100644 --- a/packages/backend/src/models/Note.ts +++ b/packages/backend/src/models/Note.ts @@ -16,8 +16,9 @@ import type { MiDriveFile } from './DriveFile.js'; // Please note that `CREATE INDEX CONCURRENTLY` is not supported in transaction, // so you need to set `transaction = false` in migration. // Please refer 1745378064470-composite-note-index.js for example. -// You should not use `@Index({ concurrent: true })` decorator because -// it will break database initialization on test, because it will always run CREATE INDEX in transaction. +// You should not use `@Index({ concurrent: true })` decorator because database initialization for test will fail +// because it will always run CREATE INDEX in transaction based on decorators. +// Not appending `{ concurrent: true }` to `@Index` will not cause any problem in production, @Index(['userId', 'id']) @Entity('note') export class MiNote {