Make the LDAP Client-side certificate fields Nullable

This commit is contained in:
Brady Wetherington 2021-08-24 12:52:03 -07:00
parent 70f6753f50
commit 2d578a9864
3 changed files with 38 additions and 4 deletions

View file

@ -14,7 +14,7 @@ class AddClientSideLDAPCertToSettings extends Migration
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->text('ldap_client_tls_cert');
$table->text('ldap_client_tls_cert')->nullable();
});
}
@ -26,7 +26,7 @@ class AddClientSideLDAPCertToSettings extends Migration
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn('ldap_client_tls_cert');
$table->dropColumn('ldap_client_tls_cert')->nullable();
});
}
}

View file

@ -14,7 +14,7 @@ class AddClientSideLDAPKeyToSettings extends Migration
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->text("ldap_client_tls_key");
$table->text("ldap_client_tls_key")->nullable();
});
}
@ -26,7 +26,7 @@ class AddClientSideLDAPKeyToSettings extends Migration
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn("ldap_client_tls_key");
$table->dropColumn("ldap_client_tls_key")->nullable();
});
}
}

View file

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MakeLdapClientCertsNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('settings', function (Blueprint $table) {
//
$table->text('ldap_client_tls_cert')->nullable()->change();
$table->text('ldap_client_tls_key')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('settings', function (Blueprint $table) {
//
});
}
}