2022-03-05 16:02:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class CreateSettingsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('settings', function (Blueprint $table) {
|
2022-03-05 16:22:16 +01:00
|
|
|
$table->integer('id')->default(1)->primary();
|
2022-03-05 16:02:12 +01:00
|
|
|
$table->boolean('show_versions_footer')->default(true);
|
|
|
|
$table->boolean('show_servers_public')->default(false);
|
|
|
|
$table->boolean('show_server_value_ip')->default(false);
|
|
|
|
$table->boolean('show_server_value_hostname')->default(false);
|
|
|
|
$table->boolean('show_server_value_provider')->default(true);
|
|
|
|
$table->boolean('show_server_value_location')->default(true);
|
|
|
|
$table->boolean('show_server_value_price')->default(true);
|
|
|
|
$table->boolean('show_server_value_yabs')->default(true);
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('settings');
|
|
|
|
}
|
|
|
|
};
|