I use sqlite3 as my DB and use sequelize library to handle it.
I have a module and want to reset autoIncrement primary key after truncating it.
var logModule = db.logModule()
logModule.destroy({
where:{},
truncate: true
})
But I found this way just clear all records in my table, didn't reset the autoIncrement primary key to zero.
Is there any way to reset primary key after clear all records in my table?