diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-05 15:28:49 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | f023a19c3eeeea2b014b47fae522a62eab320048 (patch) | |
tree | 988ff97432663db928f1e3e3f498da856e739de1 /server/initializers | |
parent | 345da516fae80f24c90c2196e96393b489af2243 (diff) | |
download | PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.gz PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.zst PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.zip |
WIP plugins: install/uninstall
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/database.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 142063a99..a7988d75b 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -37,6 +37,7 @@ import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-pla | |||
37 | import { VideoPlaylistModel } from '../models/video/video-playlist' | 37 | import { VideoPlaylistModel } from '../models/video/video-playlist' |
38 | import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' | 38 | import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' |
39 | import { ThumbnailModel } from '../models/video/thumbnail' | 39 | import { ThumbnailModel } from '../models/video/thumbnail' |
40 | import { PluginModel } from '../models/server/plugin' | ||
40 | import { QueryTypes, Transaction } from 'sequelize' | 41 | import { QueryTypes, Transaction } from 'sequelize' |
41 | 42 | ||
42 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 43 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
@@ -107,7 +108,8 @@ async function initDatabaseModels (silent: boolean) { | |||
107 | VideoStreamingPlaylistModel, | 108 | VideoStreamingPlaylistModel, |
108 | VideoPlaylistModel, | 109 | VideoPlaylistModel, |
109 | VideoPlaylistElementModel, | 110 | VideoPlaylistElementModel, |
110 | ThumbnailModel | 111 | ThumbnailModel, |
112 | PluginModel | ||
111 | ]) | 113 | ]) |
112 | 114 | ||
113 | // Check extensions exist in the database | 115 | // Check extensions exist in the database |