Added migration

This commit is contained in:
snipe
2025-11-14 15:57:47 +00:00
parent 2ee51bb282
commit 5a89056112

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('companies', function (Blueprint $table) {
$table->string('tag_color', )->after('name')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('companies', function ($table) {
$table->dropColumn('tag_color');
});
}
};