aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-07 15:27:35 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-07 15:54:34 +0200
commitfdbda9e3d6564ec908733c7019305f6a3c363a9f (patch)
treec596034156f167e7cfafe41c4a3fc6adda488a0d /server/initializers/database.ts
parent04de542abd940f9d2ca213fba3c68580c6c9b78a (diff)
downloadPeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.gz
PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.zst
PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.zip
Add tests for npm run scripts
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts39
1 files changed, 19 insertions, 20 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index d04c8db1b..d59fd3655 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -8,26 +8,25 @@ import { CONFIG } from './constants'
8// Do not use barrel, we need to load database first 8// Do not use barrel, we need to load database first
9import { logger } from '../helpers/logger' 9import { logger } from '../helpers/logger'
10import { isTestInstance, readdirPromise } from '../helpers/core-utils' 10import { isTestInstance, readdirPromise } from '../helpers/core-utils'
11import { 11
12 ApplicationModel, 12import { VideoModel } from './../models/video/video-interface'
13 AuthorModel, 13import { VideoTagModel } from './../models/video/video-tag-interface'
14 JobModel, 14import { BlacklistedVideoModel } from './../models/video/video-blacklist-interface'
15 OAuthClientModel, 15import { VideoFileModel } from './../models/video/video-file-interface'
16 OAuthTokenModel, 16import { VideoAbuseModel } from './../models/video/video-abuse-interface'
17 PodModel, 17import { UserModel } from './../models/user/user-interface'
18 RequestModel, 18import { UserVideoRateModel } from './../models/user/user-video-rate-interface'
19 RequestToPodModel, 19import { TagModel } from './../models/video/tag-interface'
20 RequestVideoEventModel, 20import { RequestModel } from './../models/request/request-interface'
21 RequestVideoQaduModel, 21import { RequestVideoQaduModel } from './../models/request/request-video-qadu-interface'
22 TagModel, 22import { RequestVideoEventModel } from './../models/request/request-video-event-interface'
23 UserModel, 23import { RequestToPodModel } from './../models/request/request-to-pod-interface'
24 UserVideoRateModel, 24import { PodModel } from './../models/pod/pod-interface'
25 VideoAbuseModel, 25import { OAuthTokenModel } from './../models/oauth/oauth-token-interface'
26 BlacklistedVideoModel, 26import { OAuthClientModel } from './../models/oauth/oauth-client-interface'
27 VideoFileModel, 27import { JobModel } from './../models/job/job-interface'
28 VideoTagModel, 28import { AuthorModel } from './../models/video/author-interface'
29 VideoModel 29import { ApplicationModel } from './../models/application/application-interface'
30} from '../models'
31 30
32const dbname = CONFIG.DATABASE.DBNAME 31const dbname = CONFIG.DATABASE.DBNAME
33const username = CONFIG.DATABASE.USERNAME 32const username = CONFIG.DATABASE.USERNAME