From 9bfbc12afac8517792b49370c9c4fd8b5652eda3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 13 Jun 2019 15:30:51 +0900 Subject: [PATCH] Add indexes --- src/models/entities/drive-file.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/entities/drive-file.ts b/src/models/entities/drive-file.ts index 130af39ede..319bdc82ce 100644 --- a/src/models/entities/drive-file.ts +++ b/src/models/entities/drive-file.ts @@ -72,6 +72,7 @@ export class DriveFile { }) public properties: Record; + @Index() @Column('boolean') public storedInternal: boolean; @@ -146,6 +147,7 @@ export class DriveFile { /** * 外部の(信頼されていない)URLへの直リンクか否か */ + @Index() @Column('boolean', { default: false, comment: 'Whether the DriveFile is direct link to remote server.'