Merge pull request #9986 from uberbrady/fix_client_side_ldap_cert_settings

Make the LDAP Client-side certificate fields Nullable
This commit is contained in:
snipe 2021-08-24 15:10:49 -07:00 committed by GitHub
commit 80b411c94b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 2 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()->default(null);
});
}

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()->default(null);
});
}

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) {
//
});
}
}