mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixes new setup migration for auto-increment
This commit is contained in:
parent
5b9bcd8fa2
commit
274f3511f5
|
@ -26,9 +26,12 @@ class AddNextAutoincrementToSettings extends Migration
|
|||
});
|
||||
|
||||
\Log::debug('Setting '.$next.' as default auto-increment');
|
||||
$settings = App\Models\Setting::first();
|
||||
$settings->next_auto_tag_base = $next;
|
||||
$settings->save();
|
||||
|
||||
if ($settings = App\Models\Setting::first()) {
|
||||
$settings->next_auto_tag_base = $next;
|
||||
$settings->save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue