diff --git a/Changelog b/Changelog index 5f9a303ad..d7427a887 100755 --- a/Changelog +++ b/Changelog @@ -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 diff --git a/database/migrations/2018_01_20_195822_create_movieinfo_table.php b/database/migrations/2018_01_20_195822_create_movieinfo_table.php index 1acacb800..dbdce3446 100644 --- a/database/migrations/2018_01_20_195822_create_movieinfo_table.php +++ b/database/migrations/2018_01_20_195822_create_movieinfo_table.php @@ -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'); + } }