Sid Gifari File Manager
🏠 Root
/
home
/
genremedia08
/
musicjukebox.overlookedtracks.com
/
database
/
migrations
/
Editing: 2019_10_02_192908_create_reposts_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRepostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reposts', function (Blueprint $table) { $table->increments('id'); $table->integer('repostable_id')->index(); $table->string('repostable_type', 20)->index(); $table->integer('user_id')->index(); $table->timestamps(); $table->unique(['repostable_id', 'repostable_type', 'user_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('reposts'); } }
Save
Cancel