mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
50 lines
1.1 KiB
PHP
50 lines
1.1 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');
|
|
}
|
|
|
|
}
|