code/database/migrations/2023_01_21_172219_mailtype_for_notifications.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::table('notifications', function (Blueprint $table) {
$table->string('mailtype')->nullable()->default(null);
});
}
public function down()
{
Schema::table('notifications', function (Blueprint $table) {
$table->dropColumn('mailtype');
});
}
};