Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat(migration): add CN and alternative names to DB

peaklabs-dev498bf045596d
diff --git a/app/Models/SslCertificate.php b/app/Models/SslCertificate.php
index d16860b22b..f1818f9704 100644
--- a/app/Models/SslCertificate.php
+++ b/app/Models/SslCertificate.php
@@ -12,7 +12,10 @@ class SslCertificate extends Model
'resource_type',
'resource_id',
'server_id',
+ 'common_name',
+ 'subject_alternative_names',
'valid_until',
+ 'is_ca_certificate',
];
protected $casts = [
diff --git a/database/migrations/2025_01_27_153741_create_ssl_certificates_table.php b/database/migrations/2025_01_27_153741_create_ssl_certificates_table.php
index 5abd0f4538..b19493b962 100644
--- a/database/migrations/2025_01_27_153741_create_ssl_certificates_table.php
+++ b/database/migrations/2025_01_27_153741_create_ssl_certificates_table.php
@@ -15,6 +15,8 @@ return new class extends Migration
$table->string('resource_type')->nullable();
$table->unsignedBigInteger('resource_id')->nullable();
$table->unsignedBigInteger('server_id');
+ $table->text('common_name');
+ $table->text('subject_alternative_names')->nullable();
$table->timestamp('valid_until');
$table->boolean('is_ca_certificate')->default(false);
$table->timestamps();