Speed up truncation in mysql, postgres and sqlite in integration tests. (#102439)

Speed up truncation in sqlite, mysql and postgres integration tests.
This commit is contained in:
Peter Štibraný
2025-03-19 14:16:20 +01:00
committed by GitHub
parent 4927376f32
commit 0566ddbf4d
3 changed files with 3 additions and 3 deletions
@@ -103,7 +103,7 @@ func (db *SQLite3) CleanDB(engine *xorm.Engine) error {
// TruncateDBTables deletes all data from all the tables and resets the sequences.
// A special case is the dashboard_acl table where we keep the default permissions.
func (db *SQLite3) TruncateDBTables(engine *xorm.Engine) error {
tables, err := engine.DBMetas()
tables, err := engine.Dialect().GetTables()
if err != nil {
return err
}