From 20f4694ec4e25502173744cd447ed554f6210d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 11 Aug 2018 18:47:07 +0200 Subject: [PATCH] make proposal table_id nullable --- .../migrations/2018_07_08_194000_create_proposals_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2018_07_08_194000_create_proposals_table.php b/database/migrations/2018_07_08_194000_create_proposals_table.php index b35714a..6e7cd75 100644 --- a/database/migrations/2018_07_08_194000_create_proposals_table.php +++ b/database/migrations/2018_07_08_194000_create_proposals_table.php @@ -19,7 +19,7 @@ class CreateProposalsTable extends Migration // note that a revision may be shared by multiple tables, thus a proposal may also apply to different tables - $table->unsignedInteger('table_id')->index(); // table this proposal was written for + $table->unsignedInteger('table_id')->index()->nullable(); // table this proposal was written for $table->unsignedInteger('revision_id')->index(); // parent revision (applying it to a different revisions may cause conflicts) $table->unsignedInteger('author_id')->index();