From a1ff24510e66ba59435041d92da12e277b51f0e8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 16 Nov 2016 13:55:13 +0100 Subject: [PATCH] fix migration --- database/2016_08_04_175711_files_belong_on_the_filesystem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/2016_08_04_175711_files_belong_on_the_filesystem.php b/database/2016_08_04_175711_files_belong_on_the_filesystem.php index f991c0f..87e53ac 100644 --- a/database/2016_08_04_175711_files_belong_on_the_filesystem.php +++ b/database/2016_08_04_175711_files_belong_on_the_filesystem.php @@ -27,7 +27,8 @@ class FilesBelongOnTheFilesystem extends Migration $schema = DB::getSchemaBuilder(); $schema->table('uploads', function (Blueprint $table) { - $table->binary('file_data'); + $table->binary('file_data') + ->nullable(); }); } }