mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
39 lines
1020 B
PHP
39 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');
|
|
}
|
|
}
|