Update mysqlOptions schema

cshd
Dragory 2020-08-14 01:01:40 +03:00
parent 25f2814e11
commit 538a14338c
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
2 changed files with 14 additions and 8 deletions

View File

@ -47,11 +47,15 @@
* @property {*} [commandAliases]
* @property {number} [port=8890]
* @property {string} [url]
* @property {string} [dbDir]
* @property {object} [knex]
* @property {string} [logDir]
* @property {array} [extraIntents=[]]
* @property {*} [dbType="sqlite"]
* @property {*} [sqliteOptions]
* @property {*} [mysqlOptions]
* @property {object} [sqliteOptions]
* @property {string} sqliteOptions.filename
* @property {object} [mysqlOptions]
* @property {string} mysqlOptions.host
* @property {number} mysqlOptions.port
* @property {string} mysqlOptions.user
* @property {string} mysqlOptions.password
* @property {string} mysqlOptions.database
* @property {string} [mysqlOptions.timezone]
*/

View File

@ -282,10 +282,12 @@
"type": "object",
"properties": {
"host": {
"type": "string"
"type": "string",
"default": "localhost"
},
"port": {
"type": "number"
"type": "number",
"default": "3306"
},
"user": {
"type": "string"
@ -300,7 +302,7 @@
"type": "string"
}
},
"required": ["user", "password", "database"]
"required": ["host", "port", "user", "password", "database"]
}
},
"allOf": [