Domain Create Modal anpassen Fehler auf Null

main
boban 2025-10-17 15:29:37 +02:00
parent 47aed3add9
commit c85dc952d6
2 changed files with 29 additions and 0 deletions

View File

@ -15,6 +15,7 @@ return new class extends Migration
$table->id();
$table->foreignId('domain_id')->constrained('domains')->cascadeOnDelete();
$table->string('local', 191); // z.B. "info"
$table->string('destination', 191)->nullable();
$table->enum('type', ['single','group'])->default('single');
$table->string('group_name', 80)->nullable();
$table->boolean('is_active')->default(true)->index();

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('mail_aliases', function (Blueprint $table) {
$table->string('destination', 191)->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('mail_aliases', function (Blueprint $table) {
//
});
}
};