mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateConsoleinfoTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('consoleinfo', function (Blueprint $table) {
|
|
$table->engine = 'InnoDB';
|
|
$table->charset = 'utf8';
|
|
$table->collation = 'utf8_unicode_ci';
|
|
$table->increments('id');
|
|
$table->string('title');
|
|
$table->string('asin', 128)->nullable()->unique('ix_consoleinfo_asin');
|
|
$table->string('url', 1000)->nullable();
|
|
$table->integer('salesrank')->unsigned()->nullable();
|
|
$table->string('platform')->nullable();
|
|
$table->string('publisher')->nullable();
|
|
$table->integer('genres_id')->nullable();
|
|
$table->string('esrb')->nullable();
|
|
$table->dateTime('releasedate')->nullable();
|
|
$table->string('review', 3000)->nullable();
|
|
$table->boolean('cover')->default(0);
|
|
$table->timestamps();
|
|
});
|
|
DB::statement('ALTER TABLE consoleinfo ADD FULLTEXT ix_consoleinfo_title_platform_ft (title, platform)');
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('consoleinfo');
|
|
}
|
|
}
|