mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Make the LDAP Client-side certificate fields Nullable
This commit is contained in:
parent
70f6753f50
commit
2d578a9864
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue