code/database/migrations/2024_01_25_174043_supplier_notifications_on_close.php
<?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('suppliers', function (Blueprint $table) {
$table->string('notify_on_close_enabled')->default('none');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('suppliers', function (Blueprint $table) {
$table->dropColumn('notify_on_close_enabled');
});
}
};