@@ -257,8 +257,11 @@ class SQLiteQueryGenerator extends MySqlQueryGenerator {
return{query,bind};
}
truncateTableQuery(tableName){
return`DELETE FROM ${this.quoteTable(tableName)}`;
truncateTableQuery(tableName,options={}){
return[
`DELETE FROM ${this.quoteTable(tableName)}`,
options.restartIdentity?`; DELETE FROM ${this.quoteTable('sqlite_sequence')} WHERE ${this.quoteIdentifier('name')} = ${Utils.addTicks(Utils.removeTicks(this.quoteTable(tableName),'`'),"'")};`:''