mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Improved data generator clear data performance
ref PROD-233
This commit is contained in:
parent
51ee276e97
commit
a3bbd579dd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue