created FilamentCount per Manufacturer

This commit is contained in:
2025-03-10 22:39:15 +01:00
parent 9cbcddcb6b
commit c4d7410719
8 changed files with 81 additions and 58 deletions
@@ -0,0 +1,30 @@
<?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('manufacturers', function (Blueprint $table) {
//
$table->integer('filament_count')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('manufacturers', function (Blueprint $table) {
//
$table->dropColumn('filament_count');
});
}
};