Daniel Supernault 3 лет назад
Родитель
Сommit
fb652805dd
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      database/migrations/2021_07_29_014849_create_poll_votes_table.php

+ 2 - 1
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();