Skip to content

A free open source IT asset/license management system

comments

spencerrlonggad6b5020059d
diff --git a/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php b/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
index c1eee5ea1b..306b551f7b 100644
--- a/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
+++ b/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
@@ -23,7 +23,7 @@ class DenormalizedEolAndAddColumnForExplicitDateToAssets extends Migration
// Update the eol_explicit column with the value from asset_eol_date if it exists and is different from the calculated value
- $assetsToUpdateEolExplicit = [];
+ //$assetsToUpdateEolExplicit = [];
DB::transaction(function() {
Asset::whereNotNull('asset_eol_date')->with('model')->chunkById(500, function ($assetsWithEolDates) {
foreach ($assetsWithEolDates as $asset) {
@@ -35,7 +35,7 @@ class DenormalizedEolAndAddColumnForExplicitDateToAssets extends Migration
}
if ($asset->model->eol) {
if ($months != $asset->model->eol) {
- $assetToUpdateEolExplicit = $asset->id;
+ //$assetToUpdateEolExplicit = $asset->id;
$asset->update(['eol_explicit' => true]);
}
} else {