[#1] releases processing

This commit is contained in:
2024-12-30 02:55:59 +02:00
parent a44de7348e
commit 3d7e0295ae
5 changed files with 131 additions and 1 deletions
@@ -0,0 +1,34 @@
<?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('release_dates', function (Blueprint $table) {
$table->id();
$table->string('iso_3166');
$table->string('certification');
$table->text('descriptors');
$table->string('iso_639');
$table->text('note');
$table->date('release_date');
$table->integer('type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('release_dates');
}
};
@@ -0,0 +1,29 @@
<?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('movie_release_dates', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('movie_id');
$table->unsignedBigInteger('release_date_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('movie_release_dates');
}
};