Files

31 lines
736 B
PHP
Raw Permalink Normal View History

2015-12-07 22:46:46 -05:00
<?php
2024-10-21 19:18:20 -06:00
use Illuminate\Support\Facades\Schema;
2015-12-07 22:46:46 -05:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddServerVariables extends Migration
{
/**
* Run the migrations.
*/
2024-10-21 19:18:20 -06:00
public function up(): void
2015-12-07 22:46:46 -05:00
{
Schema::create('server_variables', function (Blueprint $table) {
2016-01-23 15:42:25 -05:00
$table->increments('id');
2015-12-07 22:46:46 -05:00
$table->mediumInteger('server_id')->unsigned();
$table->mediumInteger('variable_id')->unsigned();
$table->string('variable_value');
2016-01-23 15:42:25 -05:00
$table->timestamps();
2015-12-07 22:46:46 -05:00
});
}
/**
* Reverse the migrations.
*/
2024-10-21 19:18:20 -06:00
public function down(): void
2015-12-07 22:46:46 -05:00
{
Schema::dropIfExists('server_variables');
2015-12-07 22:46:46 -05:00
}
}