Files
newznab-tmux/database/migrations/2018_01_18_105834_create_settings_table.php
T
2019-01-31 20:17:57 +01:00

41 lines
1020 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->string('section', 25)->default('');
$table->string('subsection', 25)->default('');
$table->string('name', 25)->default('');
$table->string('value', 1000)->default('');
$table->text('hint', 65535);
$table->string('setting', 64)->default('')->unique('ui_settings_setting');
$table->primary(['section','subsection','name']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('settings');
}
}