update comment

This commit is contained in:
anatawa12 2025-05-01 11:36:01 +09:00
parent 61cbb1c60b
commit 6b21c249d4
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 3 additions and 2 deletions

View File

@ -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 {