diff --git a/database/migrations/2021_07_29_014849_create_poll_votes_table.php b/database/migrations/2021_07_29_014849_create_poll_votes_table.php index 4db7e23b1..ac7316f1b 100644 --- a/database/migrations/2021_07_29_014849_create_poll_votes_table.php +++ b/database/migrations/2021_07_29_014849_create_poll_votes_table.php @@ -15,7 +15,8 @@ class CreatePollVotesTable extends Migration { Schema::create('poll_votes', function (Blueprint $table) { $table->id(); - $table->bigInteger('status_id')->unsigned()->index(); + $table->bigInteger('story_id')->unsigned()->nullable()->index(); + $table->bigInteger('status_id')->unsigned()->nullable()->index(); $table->bigInteger('profile_id')->unsigned()->index(); $table->bigInteger('poll_id')->unsigned()->index(); $table->unsignedInteger('choice')->default(0)->index();