From 3fe831c7d804ed32c017bea509ad636a7ae174c8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 13 Sep 2016 19:20:09 +0200 Subject: [PATCH] Bit of code cleanup courtesy of PHPStorm. --- .../2016_09_12_121359_fix_nullables.php | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/database/migrations/2016_09_12_121359_fix_nullables.php b/database/migrations/2016_09_12_121359_fix_nullables.php index cb51287c9f..3a9044d9dc 100644 --- a/database/migrations/2016_09_12_121359_fix_nullables.php +++ b/database/migrations/2016_09_12_121359_fix_nullables.php @@ -1,31 +1,13 @@ text('description')->nullable()->change(); - } - ); - - Schema::table( - 'rules', function (Blueprint $table) - { - $table->text('description')->nullable()->change(); - } - ); - } +/** + * Class FixNullables + */ +class FixNullables extends Migration +{ /** * Reverse the migrations. @@ -36,4 +18,24 @@ class FixNullables extends Migration { { } + + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table( + 'rule_groups', function (Blueprint $table) { + $table->text('description')->nullable()->change(); + } + ); + + Schema::table( + 'rules', function (Blueprint $table) { + $table->text('description')->nullable()->change(); + } + ); + } }