D'oh! Migration fails on empty settings table :(

This commit is contained in:
Brady Wetherington 2022-02-03 20:04:33 -08:00
parent 796ef741e8
commit 8650faf0d8

View file

@ -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.
* *