Merge pull request from sandermulders/fix/nullable-values

add migration that correctly sets nullable for description fields on rules and rule_groups
This commit is contained in:
James Cole 2016-09-12 16:52:14 +02:00 committed by GitHub
commit 5379e03447

View File

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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();
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}