WIP plugins: install/uninstall

This commit is contained in:
Chocobozzz 2019-07-05 15:28:49 +02:00 committed by Chocobozzz
parent 345da516fa
commit f023a19c3e
11 changed files with 216 additions and 9 deletions

View file

@ -37,6 +37,7 @@ import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-pla
import { VideoPlaylistModel } from '../models/video/video-playlist'
import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
import { ThumbnailModel } from '../models/video/thumbnail'
import { PluginModel } from '../models/server/plugin'
import { QueryTypes, Transaction } from 'sequelize'
require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
@ -107,7 +108,8 @@ async function initDatabaseModels (silent: boolean) {
VideoStreamingPlaylistModel,
VideoPlaylistModel,
VideoPlaylistElementModel,
ThumbnailModel
ThumbnailModel,
PluginModel
])
// Check extensions exist in the database