5 - Add buffer_multiplier column to buckets table

This commit is contained in:
myrmidex 2026-03-20 00:21:24 +01:00
parent d742b84343
commit b4903cf3cf

View file

@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('buckets', function (Blueprint $table) {
$table->decimal('buffer_multiplier', 5, 2)
->default(0)
->after('allocation_value')
->comment('Multiplier for buffer capacity on fixed_limit buckets. 0 = no buffer, 1 = 100% extra capacity');
});
}
public function down(): void
{
Schema::table('buckets', function (Blueprint $table) {
$table->dropColumn('buffer_multiplier');
});
}
};