coolify/database/migrations/2023_06_23_114134_add_disk_usage_percentage_to_servers.php

29 lines
650 B
PHP
Raw Permalink Normal View History

2023-07-07 21:07:42 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2023-08-11 20:48:52 +02:00
return new class extends Migration
{
2023-07-07 21:07:42 +02:00
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('server_settings', function (Blueprint $table) {
$table->integer('cleanup_after_percentage')->default(80);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('server_settings', function (Blueprint $table) {
$table->dropColumn('cleanup_after_percentage');
});
}
};