update comment
This commit is contained in:
parent
61cbb1c60b
commit
6b21c249d4
|
@ -16,8 +16,9 @@ import type { MiDriveFile } from './DriveFile.js';
|
||||||
// Please note that `CREATE INDEX CONCURRENTLY` is not supported in transaction,
|
// Please note that `CREATE INDEX CONCURRENTLY` is not supported in transaction,
|
||||||
// so you need to set `transaction = false` in migration.
|
// so you need to set `transaction = false` in migration.
|
||||||
// Please refer 1745378064470-composite-note-index.js for example.
|
// Please refer 1745378064470-composite-note-index.js for example.
|
||||||
// You should not use `@Index({ concurrent: true })` decorator because
|
// You should not use `@Index({ concurrent: true })` decorator because database initialization for test will fail
|
||||||
// it will break database initialization on test, because it will always run CREATE INDEX in transaction.
|
// 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'])
|
@Index(['userId', 'id'])
|
||||||
@Entity('note')
|
@Entity('note')
|
||||||
export class MiNote {
|
export class MiNote {
|
||||||
|
|
Loading…
Reference in New Issue