Rework the LDAP sync command to better handle the active flag

This commit is contained in:
Brady Wetherington
2022-02-03 15:01:45 -08:00
parent db82e06665
commit 392e61688d
2 changed files with 43 additions and 12 deletions
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Models\Setting;
class BlankOutLdapActiveFlag extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$s = Setting::getSettings();
$s->ldap_active_flag = '';
$s->save();
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}