Improved data generator clear data performance
ref PROD-233
This commit is contained in:
parent
51ee276e97
commit
a3bbd579dd
@ -95,7 +95,7 @@ class DataGenerator {
|
||||
// Avoid deleting the admin user
|
||||
await transaction(table).del().whereNot('id', '1');
|
||||
} else {
|
||||
await transaction(table).del();
|
||||
await transaction(table).truncate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user