mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -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()
|
public function up()
|
||||||
{
|
{
|
||||||
$s = Setting::getSettings();
|
if ($s = Setting::getSettings()) {
|
||||||
$s->ldap_active_flag = '';
|
$s->ldap_active_flag = '';
|
||||||
$s->save();
|
$s->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue