Files
newznab-tmux/database/migrations/2018_01_20_200417_create_xxxinfo_table.php
T
2020-02-05 17:49:39 +00:00

47 lines
1.3 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateXxxinfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('xxxinfo', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->increments('id');
$table->string('title', 1024)->unique('ix_xxxinfo_title');
$table->string('tagline', 1024);
$table->binary('plot', 65535)->nullable();
$table->string('genre');
$table->string('director')->nullable();
$table->string('actors', 2500);
$table->text('extras', 65535)->nullable();
$table->text('productinfo', 65535)->nullable();
$table->text('trailers', 65535)->nullable();
$table->string('directurl', 2000);
$table->string('classused', 20)->default('');
$table->boolean('cover')->default(0);
$table->boolean('backdrop')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('xxxinfo');
}
}