From 93b2954a257241f9437810f29cc126ac7cb168b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abra=C3=A3o=20Pessoa?= Date: Thu, 30 Jan 2020 01:05:01 -0300 Subject: [PATCH] fixed migration errors (#8) --- database/migrations/create_activity_streams_tables.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/database/migrations/create_activity_streams_tables.php b/database/migrations/create_activity_streams_tables.php index e9fffd7..de3d36b 100644 --- a/database/migrations/create_activity_streams_tables.php +++ b/database/migrations/create_activity_streams_tables.php @@ -16,7 +16,7 @@ public function up() Schema::create('feeds', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('feedable_type'); - $table->string('feedable_id')->unsigned(); + $table->bigInteger('feedable_id')->unsigned(); $table->unique(['feedable_id', 'feedable_type']); $table->text('extra')->nullable(); $table->timestamps(); @@ -39,8 +39,8 @@ public function up() Schema::create('feed_activities', function (Blueprint $table) { $table->bigIncrements('id'); - $table->bigInteger('activity_id'); - $table->bigInteger('feed_id'); + $table->bigInteger('activity_id')->unsigned(); + $table->bigInteger('feed_id')->unsigned(); $table->unique(['feed_id', 'activity_id']); $table->text('extra')->nullable(); $table->timestamps(); @@ -54,6 +54,7 @@ public function up() ->references('id') ->on('feeds') ->onDelete('cascade'); + }); Schema::create('follows', function (Blueprint $table) {