瀏覽代碼

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) {
         Schema::create('poll_votes', function (Blueprint $table) {
             $table->id();
             $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('profile_id')->unsigned()->index();
             $table->bigInteger('poll_id')->unsigned()->index();
             $table->bigInteger('poll_id')->unsigned()->index();
             $table->unsignedInteger('choice')->default(0)->index();
             $table->unsignedInteger('choice')->default(0)->index();