2015-12-08 04:46:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class AddServerVariables extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('server_variables', function (Blueprint $table) {
|
2016-01-23 21:42:25 +01:00
|
|
|
$table->increments('id');
|
2015-12-08 04:46:46 +01:00
|
|
|
$table->mediumInteger('server_id')->unsigned();
|
|
|
|
$table->mediumInteger('variable_id')->unsigned();
|
|
|
|
$table->string('variable_value');
|
2016-01-23 21:42:25 +01:00
|
|
|
$table->timestamps();
|
2015-12-08 04:46:46 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
2017-04-20 00:43:32 +02:00
|
|
|
Schema::dropIfExists('server_variables');
|
2015-12-08 04:46:46 +01:00
|
|
|
}
|
|
|
|
}
|