clmm-v2/database/migrations/2022_05_02_012840_create_settings_table.php
Nguyễn Tiến Dũng 3d31201a05 11/5/2022
2022-05-11 21:09:39 +07:00

59 lines
1.7 KiB
PHP

<?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) {
$table->id();
$table->string('name');
$table->string('keywords');
$table->string('logo');
$table->string('description');
$table->string('favicon');
$table->string('background');
$table->integer('active');
$table->integer('history');
$table->integer('only_win');
$table->integer('limit');
$table->integer('day_mission');
$table->integer('week_top');
$table->string('ratioCL');
$table->string('ratioCL2');
$table->string('ratioTX');
$table->string('ratioTX2');
$table->string('ratio1P3');
$table->string('ratioG3');
$table->string('ratioH3');
$table->string('ratioLO');
$table->string('gift_week')->nullable();
$table->string('gift_day')->nullable();
$table->longText('note');
$table->string('content');
$table->string('content_day');
$table->string('content_week');
$table->longText('ads')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('settings');
}
}