diff --git a/database/migrations/add_lets_encrypt_certificates_subject_alternative_names.php.stub b/database/migrations/add_lets_encrypt_certificates_subject_alternative_names.php.stub index 12291d9..03e4c39 100644 --- a/database/migrations/add_lets_encrypt_certificates_subject_alternative_names.php.stub +++ b/database/migrations/add_lets_encrypt_certificates_subject_alternative_names.php.stub @@ -2,6 +2,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Query\Expression; use Illuminate\Support\Facades\Schema; class AddLetsEncryptCertificatesSubjectAlternativeNames extends Migration @@ -9,7 +10,7 @@ class AddLetsEncryptCertificatesSubjectAlternativeNames extends Migration public function up() { Schema::table('lets_encrypt_certificates', function (Blueprint $table) { - $table->json('subject_alternative_names')->default('[]')->after('domain'); + $table->json('subject_alternative_names')->default(new Expression('(JSON_ARRAY())'))->after('domain'); }); }