Adding explicit default(null), and removing the nullable() attribute on the down() migration

This commit is contained in:
Brady Wetherington 2021-08-24 14:15:55 -07:00
parent 2d578a9864
commit ae65e2a0a0
2 changed files with 4 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')->nullable();
$table->text('ldap_client_tls_cert')->nullable()->default(null);
});
}
@ -26,7 +26,7 @@ class AddClientSideLDAPCertToSettings extends Migration
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn('ldap_client_tls_cert')->nullable();
$table->dropColumn('ldap_client_tls_cert');
});
}
}

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")->nullable();
$table->text("ldap_client_tls_key")->nullable()->default(null);
});
}
@ -26,7 +26,7 @@ class AddClientSideLDAPKeyToSettings extends Migration
public function down()
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn("ldap_client_tls_key")->nullable();
$table->dropColumn("ldap_client_tls_key");
});
}
}