Adding explicit default(null), and removing the nullable() attribute on the down() migration
This commit is contained in:
parent
2d578a9864
commit
ae65e2a0a0
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue