Files
panel-pelican-dev/database/migrations/2017_08_05_144104_AllowNegativeValuesForOverallocation.php

31 lines
834 B
PHP
Raw Permalink Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
2025-09-24 13:34:19 +02:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2024-03-19 21:03:50 -04:00
return new class extends Migration
{
/**
* Run the migrations.
*/
2024-03-19 21:12:27 -04:00
public function up(): void
{
Schema::table('nodes', function (Blueprint $table) {
$table->integer('disk_overallocate')->default(0)->nullable(false)->change();
$table->integer('memory_overallocate')->default(0)->nullable(false)->change();
});
}
/**
* Reverse the migrations.
*/
2024-03-19 21:12:27 -04:00
public function down(): void
{
Schema::table('nodes', function (Blueprint $table) {
$table->unsignedMediumInteger('disk_overallocate')->nullable();
$table->unsignedMediumInteger('memory_overallocate')->nullable();
});
}
2024-03-19 21:03:50 -04:00
};