From 539058e32d13f0dcc9c6cd335d8f8f019ae87970 Mon Sep 17 00:00:00 2001 From: Sander Mulders Date: Mon, 12 Sep 2016 14:24:01 +0200 Subject: [PATCH] Fix for #310: add migration that correctly sets nullable for description fields on rules and rule_groups --- .../2016_09_12_121359_fix_nullables.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2016_09_12_121359_fix_nullables.php diff --git a/database/migrations/2016_09_12_121359_fix_nullables.php b/database/migrations/2016_09_12_121359_fix_nullables.php new file mode 100644 index 0000000000..cb51287c9f --- /dev/null +++ b/database/migrations/2016_09_12_121359_fix_nullables.php @@ -0,0 +1,39 @@ +text('description')->nullable()->change(); + } + ); + + Schema::table( + 'rules', function (Blueprint $table) + { + $table->text('description')->nullable()->change(); + } + ); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + } +}