Skip to content

Commit

Permalink
fixed migration errors (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahampe authored Jan 30, 2020
1 parent e52e9e4 commit 93b2954
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions database/migrations/create_activity_streams_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -54,6 +54,7 @@ public function up()
->references('id')
->on('feeds')
->onDelete('cascade');

});

Schema::create('follows', function (Blueprint $table) {
Expand Down

0 comments on commit 93b2954

Please sign in to comment.