From 81042c85a88067d3fabfe73ee97daf0338515a24 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Thu, 15 May 2014 11:34:27 +1000 Subject: [PATCH] Add nullables --- .../migrations/2013_10_01_000002_Db_System_Files.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/database/migrations/2013_10_01_000002_Db_System_Files.php b/modules/system/database/migrations/2013_10_01_000002_Db_System_Files.php index a53c249f1..84ff6f23a 100644 --- a/modules/system/database/migrations/2013_10_01_000002_Db_System_Files.php +++ b/modules/system/database/migrations/2013_10_01_000002_Db_System_Files.php @@ -3,7 +3,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class DbSystemFiles extends Migration +class DbSystemFiles extends Migration { public function up() @@ -19,8 +19,8 @@ class DbSystemFiles extends Migration $table->string('title')->nullable(); $table->text('description')->nullable(); $table->string('field')->nullable()->index(); - $table->string('attachment_id')->index(); - $table->string('attachment_type')->index(); + $table->string('attachment_id')->index()->nullable(); + $table->string('attachment_type')->index()->nullable(); $table->boolean('public')->default(true); $table->integer('sort_order')->nullable(); $table->timestamps();