Skip to content

Commit

Permalink
Delete applications when device is deleted (librenms#10884)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant authored and PipoCanaja committed Nov 26, 2019
1 parent 7ad0735 commit 2a66c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Models/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function boot()
$device->ports()->delete();
$device->syslogs()->delete();
$device->eventlogs()->delete();
$device->applications()->delete();

// handle device dependency updates
$device->children->each->updateMaxDepth($device->device_id);
Expand Down

0 comments on commit 2a66c61

Please sign in to comment.