From 0efbd49adfbb191556a350234dedd510dd79a48c Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 2 Nov 2019 19:57:51 -0400 Subject: [PATCH] fix: mysql setup fails during table reset --- server/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/setup.js b/server/setup.js index e171e62e..d6e144f9 100644 --- a/server/setup.js +++ b/server/setup.js @@ -199,8 +199,8 @@ module.exports = () => { case 'mariadb': await WIKI.models.groups.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 users 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') break case 'mssql': await WIKI.models.groups.query().del()