mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
Few more migration fixes
This commit is contained in:
parent
6186c324b5
commit
a1eac967a7
|
@ -80,7 +80,7 @@ class MigrateDenormedAssetLocations extends Migration
|
||||||
$assets = Asset::get();
|
$assets = Asset::get();
|
||||||
|
|
||||||
foreach ($assets as $asset) {
|
foreach ($assets as $asset) {
|
||||||
if (($asset) && ($asset->location_id != $asset->assetLoc()->id)) {
|
if (($asset) && ($asset->assetLoc()) && ($asset->location_id != $asset->assetLoc()->id)) {
|
||||||
\Log::info('MISMATCH MISMATCH '.$asset->id. "doesn't match its location");
|
\Log::info('MISMATCH MISMATCH '.$asset->id. "doesn't match its location");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue