33 lines
779 B
PHP
33 lines
779 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateFeedFeedItemsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('feed_feed_items', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->unsignedBigInteger('feed_id')->index('feed_feed_items_feed_id_foreign');
|
||
|
$table->unsignedBigInteger('feed_item_id')->index('feed_feed_items_feed_item_id_foreign');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('feed_feed_items');
|
||
|
}
|
||
|
}
|