5 - Add buffer_multiplier column to buckets table
This commit is contained in:
parent
d742b84343
commit
b4903cf3cf
1 changed files with 25 additions and 0 deletions
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue