mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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');
|
\Log::debug('Setting '.$next.' as default auto-increment');
|
||||||
$settings = App\Models\Setting::first();
|
|
||||||
$settings->next_auto_tag_base = $next;
|
if ($settings = App\Models\Setting::first()) {
|
||||||
$settings->save();
|
$settings->next_auto_tag_base = $next;
|
||||||
|
$settings->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue