Merge pull request #12665 from snipe/fixes/fixed_migration_for_smaller_chunking

Removed loading and reduced chunking to 10
This commit is contained in:
snipe 2023-03-13 17:23:19 -07:00 committed by GitHub
commit 7acf449ed3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {