1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 10:32:31 +01:00

Add allocation limits for nodes.

Percentage based, if null no limit is set (allows unlimited servers)
This commit is contained in:
Dane Everitt 2015-12-11 22:18:01 -05:00
parent 2abcb028fc
commit 94bfd24e7c

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNodeResourceLimits extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->mediumInteger('memory_overallocate')->after('memory')->unsigned()->nullable();
$table->mediumInteger('disk_overallocate')->after('disk')->unsigned()->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn('memory_overallocate');
$table->dropColumn('disk_overallocate');
});
}
}