2015-12-07 22:46:46 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2025-09-24 13:34:19 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2015-12-07 22:46:46 -05:00
|
|
|
|
2024-03-19 21:03:50 -04:00
|
|
|
return new class extends Migration
|
2015-12-07 22:46:46 -05:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04: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-03-19 21:12:27 -04:00
|
|
|
public function down(): void
|
2015-12-07 22:46:46 -05:00
|
|
|
{
|
2017-04-19 18:43:32 -04:00
|
|
|
Schema::dropIfExists('server_variables');
|
2015-12-07 22:46:46 -05:00
|
|
|
}
|
2024-03-19 21:03:50 -04:00
|
|
|
};
|