diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-22 20:41:15 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-22 20:41:15 +0900 |
| commit | 632af91878b37409afbfe3603967a552011f3fd1 (patch) | |
| tree | df7d3c9577daa485013db1ca2f543a2d8c696273 /src/models/entities | |
| parent | client: change url /instance -> /admin (diff) | |
| download | misskey-632af91878b37409afbfe3603967a552011f3fd1.tar.gz misskey-632af91878b37409afbfe3603967a552011f3fd1.tar.bz2 misskey-632af91878b37409afbfe3603967a552011f3fd1.zip | |
データベースにログを保存するのを廃止
Close #7878
Diffstat (limited to 'src/models/entities')
| -rw-r--r-- | src/models/entities/log.ts | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/models/entities/log.ts b/src/models/entities/log.ts deleted file mode 100644 index 182a9fbed8..0000000000 --- a/src/models/entities/log.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Entity, PrimaryColumn, Index, Column } from 'typeorm'; -import { id } from '../id'; - -@Entity() -export class Log { - @PrimaryColumn(id()) - public id: string; - - @Index() - @Column('timestamp with time zone', { - comment: 'The created date of the Log.' - }) - public createdAt: Date; - - @Index() - @Column('varchar', { - length: 64, array: true, default: '{}' - }) - public domain: string[]; - - @Index() - @Column('enum', { - enum: ['error', 'warning', 'info', 'success', 'debug'] - }) - public level: string; - - @Column('varchar', { - length: 8 - }) - public worker: string; - - @Column('varchar', { - length: 128 - }) - public machine: string; - - @Column('varchar', { - length: 2048 - }) - public message: string; - - @Column('jsonb', { - default: {} - }) - public data: Record<string, any>; -} |