소스 검색

Migrations

Daniel Supernault 3 년 전
부모
커밋
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();