feat(migration): add CN and alternative names to DB
This commit is contained in:
		@@ -12,7 +12,10 @@ class SslCertificate extends Model
 | 
				
			|||||||
        'resource_type',
 | 
					        'resource_type',
 | 
				
			||||||
        'resource_id',
 | 
					        'resource_id',
 | 
				
			||||||
        'server_id',
 | 
					        'server_id',
 | 
				
			||||||
 | 
					        'common_name',
 | 
				
			||||||
 | 
					        'subject_alternative_names',
 | 
				
			||||||
        'valid_until',
 | 
					        'valid_until',
 | 
				
			||||||
 | 
					        'is_ca_certificate',
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected $casts = [
 | 
					    protected $casts = [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,8 @@ return new class extends Migration
 | 
				
			|||||||
            $table->string('resource_type')->nullable();
 | 
					            $table->string('resource_type')->nullable();
 | 
				
			||||||
            $table->unsignedBigInteger('resource_id')->nullable();
 | 
					            $table->unsignedBigInteger('resource_id')->nullable();
 | 
				
			||||||
            $table->unsignedBigInteger('server_id');
 | 
					            $table->unsignedBigInteger('server_id');
 | 
				
			||||||
 | 
					            $table->text('common_name');
 | 
				
			||||||
 | 
					            $table->text('subject_alternative_names')->nullable();
 | 
				
			||||||
            $table->timestamp('valid_until');
 | 
					            $table->timestamp('valid_until');
 | 
				
			||||||
            $table->boolean('is_ca_certificate')->default(false);
 | 
					            $table->boolean('is_ca_certificate')->default(false);
 | 
				
			||||||
            $table->timestamps();
 | 
					            $table->timestamps();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user