fix: mysql setup fails during table reset
This commit is contained in:
parent
b4cb8249f5
commit
0efbd49adf
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user