database/migrations/2024_03_13_130305_add_max_participants_on_session_to_consultations_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddMaxParticipantsOnSessionToConsultationsTable extends Migration
{
public function up(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->unsignedInteger('max_session_students')->default(1);
});
}
public function down(): void
{
Schema::table('consultations', function (Blueprint $table) {
$table->dropColumn('max_session_students');
});
}
}