Bit of code cleanup courtesy of PHPStorm.

This commit is contained in:
James Cole
2016-09-13 19:20:09 +02:00
parent 6958f71cfd
commit 3fe831c7d8

View File

@@ -1,31 +1,13 @@
<?php <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class FixNullables extends Migration {
/** /**
* Run the migrations. * Class FixNullables
*
* @return void
*/ */
public function up() class FixNullables extends Migration
{ {
Schema::table(
'rule_groups', function (Blueprint $table)
{
$table->text('description')->nullable()->change();
}
);
Schema::table(
'rules', function (Blueprint $table)
{
$table->text('description')->nullable()->change();
}
);
}
/** /**
* Reverse the migrations. * 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();
}
);
}
} }