my-idlers/database/migrations/2022_02_09_032438_create_settings_table.php

40 lines
1.2 KiB
PHP
Raw Permalink Normal View History

<?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:58:25 +01:00
$table->integer('id')->default(1)->primary();
$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');
}
};