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 | |
| parent | client: change url /instance -> /admin (diff) | |
| download | sharkey-632af91878b37409afbfe3603967a552011f3fd1.tar.gz sharkey-632af91878b37409afbfe3603967a552011f3fd1.tar.bz2 sharkey-632af91878b37409afbfe3603967a552011f3fd1.zip | |
データベースにログを保存するのを廃止
Close #7878
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/entities/log.ts | 46 | ||||
| -rw-r--r-- | src/models/index.ts | 2 |
2 files changed, 0 insertions, 48 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>; -} diff --git a/src/models/index.ts b/src/models/index.ts index 059a3d7b87..4c6f19eaff 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -13,7 +13,6 @@ import { UserRepository } from './repositories/user'; import { NoteRepository } from './repositories/note'; import { DriveFileRepository } from './repositories/drive-file'; import { DriveFolderRepository } from './repositories/drive-folder'; -import { Log } from './entities/log'; import { AccessToken } from './entities/access-token'; import { UserNotePining } from './entities/user-note-pining'; import { SigninRepository } from './repositories/signin'; @@ -108,7 +107,6 @@ export const Signins = getCustomRepository(SigninRepository); export const MessagingMessages = getCustomRepository(MessagingMessageRepository); export const ReversiGames = getCustomRepository(ReversiGameRepository); export const ReversiMatchings = getCustomRepository(ReversiMatchingRepository); -export const Logs = getRepository(Log); export const Pages = getCustomRepository(PageRepository); export const PageLikes = getCustomRepository(PageLikeRepository); export const GalleryPosts = getCustomRepository(GalleryPostRepository); |