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
@@ -141,7 +141,7 @@ func (db *PostgresDialect) CleanDB(engine *xorm.Engine) error {
// TruncateDBTables truncates all the tables.
// A special case is the dashboard_acl table where we keep the default permissions.
func (db *PostgresDialect) TruncateDBTables(engine *xorm.Engine) error {
tables, err := engine.DBMetas()
tables, err := engine.Dialect().GetTables()
if err != nil {
return err
}