mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-02 16:29:39 +00:00
Add isMissing to Plugin model, add manifest version and name validation, create/update plugins table
This commit is contained in:
parent
5a96d8aeb3
commit
cfe3deff3b
5 changed files with 106 additions and 7 deletions
|
|
@ -10,6 +10,8 @@ class Plugin extends Model {
|
|||
this.name
|
||||
/** @type {string} */
|
||||
this.version
|
||||
/** @type {boolean} */
|
||||
this.isMissing
|
||||
/** @type {Object} */
|
||||
this.config
|
||||
/** @type {Object} */
|
||||
|
|
@ -34,6 +36,10 @@ class Plugin extends Model {
|
|||
},
|
||||
name: DataTypes.STRING,
|
||||
version: DataTypes.STRING,
|
||||
isMissing: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false
|
||||
},
|
||||
config: DataTypes.JSON,
|
||||
extraData: DataTypes.JSON
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue