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(); + } + ); + } }