[#8] fixed lots of issues on movie processing
This commit is contained in:
@@ -15,10 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->bigInteger('movie_id')->nullable(false);
|
||||
$table->bigInteger('person_id')->nullable(false);
|
||||
$table->string('known_for_department', 500);
|
||||
$table->string('character', 500);
|
||||
$table->string('known_for_department', 500)->nullable();
|
||||
$table->string('character', 500)->nullable();
|
||||
$table->string('tmdb_cast_id', 500);
|
||||
$table->integer('order');
|
||||
$table->integer('order')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->decimal('aspect_ratio', 10, 2);
|
||||
$table->integer('height');
|
||||
$table->string('iso');
|
||||
$table->string('iso')->nullable();
|
||||
$table->text('file_path');
|
||||
$table->decimal('vote_average', 10, 2);
|
||||
$table->integer('vote_count');
|
||||
|
||||
@@ -15,11 +15,11 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('iso_3166');
|
||||
$table->string('certification');
|
||||
$table->text('descriptors');
|
||||
$table->string('iso_639');
|
||||
$table->text('note');
|
||||
$table->text('descriptors')->nullable();
|
||||
$table->string('iso_639')->nullable();
|
||||
$table->text('note')->nullable();
|
||||
$table->date('release_date');
|
||||
$table->integer('type');
|
||||
$table->integer('type')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@ return new class extends Migration
|
||||
$table->string('entity_type');
|
||||
$table->integer('user_id')->nullable(true);
|
||||
$table->string('author_name');
|
||||
$table->string('author_avatar');
|
||||
$table->integer('author_rating');
|
||||
$table->string('author_avatar')->nullable();
|
||||
$table->integer('author_rating')->nullable();
|
||||
$table->text('content');
|
||||
$table->datetime('published_at');
|
||||
$table->string('tmdb_id');
|
||||
|
||||
@@ -21,7 +21,7 @@ return new class extends Migration
|
||||
$table->string('iso_3166_1', 2);
|
||||
$table->string('list_type', 15);
|
||||
$table->string('name', 550);
|
||||
$table->string('poster_path', 550);
|
||||
$table->string('poster_path', 550)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user