Update code style of movieinfo table migration

This commit is contained in:
DariusIII
2018-12-12 19:48:39 +01:00
parent 6491584614
commit 89c3204d79
2 changed files with 40 additions and 40 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-12-12 DariusIII
* Chg: Update code style of movieinfo table migration
* Chg: Update font-awesome to version 5.6.1 and update all-css.css and all-js.js files, also update package.json
* Chg: Update laravel/framework to version 5.7.17
* Chg: Update laravel/slack-notification-channel to version 1.0.3
@@ -3,51 +3,50 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateMovieinfoTable extends Migration {
class CreateMovieinfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('movieinfo', function(Blueprint $table)
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('movieinfo', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->charset = 'utf8';
$table->collation = 'utf8_unicode_ci';
$table->increments('id');
$table->integer('imdbid')->unsigned()->unique('ix_movieinfo_imdbid');
$table->integer('tmdbid')->unsigned()->default(0);
$table->increments('id');
$table->integer('imdbid')->unsigned()->unique('ix_movieinfo_imdbid');
$table->integer('tmdbid')->unsigned()->default(0);
$table->integer('traktid')->unsigned()->default(0);
$table->string('title')->default('')->index('ix_movieinfo_title');
$table->string('tagline', 1024)->default('');
$table->string('rating', 4)->default('');
$table->string('rtrating', 10)->default('')->comment('RottenTomatoes rating score');
$table->string('plot', 1024)->default('');
$table->string('year', 4)->default('');
$table->string('genre', 64)->default('');
$table->string('type', 32)->default('');
$table->string('director', 64)->default('');
$table->string('actors', 2000)->default('');
$table->string('language', 64)->default('');
$table->boolean('cover')->default(0);
$table->boolean('backdrop')->default(0);
$table->timestamps();
$table->string('trailer')->default('');
});
}
$table->string('title')->default('')->index('ix_movieinfo_title');
$table->string('tagline', 1024)->default('');
$table->string('rating', 4)->default('');
$table->string('rtrating', 10)->default('')->comment('RottenTomatoes rating score');
$table->string('plot', 1024)->default('');
$table->string('year', 4)->default('');
$table->string('genre', 64)->default('');
$table->string('type', 32)->default('');
$table->string('director', 64)->default('');
$table->string('actors', 2000)->default('');
$table->string('language', 64)->default('');
$table->boolean('cover')->default(0);
$table->boolean('backdrop')->default(0);
$table->timestamps();
$table->string('trailer')->default('');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('movieinfo');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('movieinfo');
}
}