mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Removed loading and reduced chunking to 10
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a2667a7520
commit
1b9c3c93ad
|
@ -23,7 +23,7 @@ class AddEolDateOnAssetsTable extends Migration
|
|||
});
|
||||
|
||||
// Chunk the model query to get the models that do have an EOL date
|
||||
AssetModel::whereNotNull('eol')->with('assets')->chunk(200, function ($models) {
|
||||
AssetModel::whereNotNull('eol')->chunk(10, function ($models) {
|
||||
foreach ($models as $model) {
|
||||
foreach ($model->assets as $asset) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue