Files
mtdb_movie/database/migrations/2023_05_30_115019_genreables_table.php
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

25 lines
530 B
PHP
Executable File

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('genre_title', function (Blueprint $table) {
$table->id();
$table->bigInteger('genre_id')->index();
$table->bigInteger('title_id')->index();
$table->unique(['genre_id', 'title_id']);
});
}
public function down()
{
//
}
};