fix: mysql setup fails during table reset

This commit is contained in:
NGPixel 2019-11-02 19:57:51 -04:00
parent b4cb8249f5
commit 0efbd49adf

View File

@ -199,8 +199,8 @@ module.exports = () => {
case 'mariadb': case 'mariadb':
await WIKI.models.groups.query().where('id', '>', 0).del() await WIKI.models.groups.query().where('id', '>', 0).del()
await WIKI.models.users.query().where('id', '>', 0).del() await WIKI.models.users.query().where('id', '>', 0).del()
await WIKI.models.knex.raw('ALTER TABLE groups AUTO_INCREMENT = 1') await WIKI.models.knex.raw('ALTER TABLE `groups` AUTO_INCREMENT = 1')
await WIKI.models.knex.raw('ALTER TABLE users AUTO_INCREMENT = 1') await WIKI.models.knex.raw('ALTER TABLE `users` AUTO_INCREMENT = 1')
break break
case 'mssql': case 'mssql':
await WIKI.models.groups.query().del() await WIKI.models.groups.query().del()