mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Adding explicit default(null), and removing the nullable() attribute on the down() migration
This commit is contained in:
parent
2d578a9864
commit
ae65e2a0a0
|
@ -14,7 +14,7 @@ class AddClientSideLDAPCertToSettings extends Migration
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
$table->text('ldap_client_tls_cert')->nullable();
|
$table->text('ldap_client_tls_cert')->nullable()->default(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class AddClientSideLDAPCertToSettings extends Migration
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
$table->dropColumn('ldap_client_tls_cert')->nullable();
|
$table->dropColumn('ldap_client_tls_cert');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ class AddClientSideLDAPKeyToSettings extends Migration
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
$table->text("ldap_client_tls_key")->nullable();
|
$table->text("ldap_client_tls_key")->nullable()->default(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class AddClientSideLDAPKeyToSettings extends Migration
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('settings', function (Blueprint $table) {
|
Schema::table('settings', function (Blueprint $table) {
|
||||||
$table->dropColumn("ldap_client_tls_key")->nullable();
|
$table->dropColumn("ldap_client_tls_key");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue