mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
D'oh! Migration fails on empty settings table :(
This commit is contained in:
parent
796ef741e8
commit
8650faf0d8
|
@ -14,11 +14,12 @@ class BlankOutLdapActiveFlag extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
$s = Setting::getSettings();
|
||||
$s->ldap_active_flag = '';
|
||||
$s->save();
|
||||
if ($s = Setting::getSettings()) {
|
||||
$s->ldap_active_flag = '';
|
||||
$s->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue