PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
MediaManager
/
Database
/
Migrations
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateObjectFilesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('object_files', function (Blueprint $table) { $table->id(); $table->string('object_type', 191); $table->integer('object_id'); $table->unsignedBigInteger('file_id'); $table->foreign('file_id')->references('id')->on('files') ->onDelete('cascade') ->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('object_files'); } }
[-] 2021_12_15_064237_create_object_files_table.php
[edit]
[+]
..
[-] 2021_12_15_064237_create_files_table.php
[edit]