From fb652805ddc552450f7e1be5874325441f35e922 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 27 Aug 2021 20:33:30 -0600 Subject: [PATCH] Migrations --- .../migrations/2021_07_29_014849_create_poll_votes_table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();