Commit 0efbd49a authored by NGPixel's avatar NGPixel

fix: mysql setup fails during table reset

parent b4cb8249
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment