create new culumn in machine and add in controller and createe enum for this

This commit is contained in:
2025-10-19 16:54:39 +03:30
parent a13b3e022e
commit afb94681de
3 changed files with 50 additions and 3 deletions

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('cmms_machines', function (Blueprint $table) {
$table->integer('status')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('cmms_machines', function (Blueprint $table) {
$table->dropColumn('status');
});
}
};