From 336c01ec6acd8d808a31addaf53d9fc095ba1be0 Mon Sep 17 00:00:00 2001 From: orion Date: Tue, 14 Mar 2023 14:57:03 +0300 Subject: [PATCH] Fix default value for subject_alternative_names --- ...ets_encrypt_certificates_subject_alternative_names.php.stub | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); }); }