38 lines
969 B
PHP
38 lines
969 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('translations', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->unsignedBigInteger('movie_id');
|
|
$table->string('iso_3166', 10);
|
|
$table->string('iso_639', 10);
|
|
$table->string('name');
|
|
$table->string('english_name');
|
|
$table->string('homepage', 500);
|
|
$table->text('overview');
|
|
$table->integer('runtime');
|
|
$table->string('tagline', 500);
|
|
$table->string('title', 500);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('translations');
|
|
}
|
|
};
|