Skip to content

Commit 336c01e

Browse files
committed
Fix default value for subject_alternative_names
1 parent 862d631 commit 336c01e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

database/migrations/add_lets_encrypt_certificates_subject_alternative_names.php.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Query\Expression;
56
use Illuminate\Support\Facades\Schema;
67

78
class AddLetsEncryptCertificatesSubjectAlternativeNames extends Migration
89
{
910
public function up()
1011
{
1112
Schema::table('lets_encrypt_certificates', function (Blueprint $table) {
12-
$table->json('subject_alternative_names')->default('[]')->after('domain');
13+
$table->json('subject_alternative_names')->default(new Expression('(JSON_ARRAY())'))->after('domain');
1314
});
1415
}
1516

0 commit comments

Comments
 (0)