ctrlpanel/database/migrations/2023_05_05_103834_oom_killer.php

33 lines
675 B
PHP
Raw Normal View History

2023-05-05 12:06:38 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function (Blueprint $table) {
$table->boolean('oom_killer')->after("allocations")->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('products', function (Blueprint $table) {
$table->dropColumn('oom_killer');
});
}
};