Fixes #822 - make user notes field nullable default null

This commit is contained in:
snipe
2015-06-09 17:34:52 -07:00
parent f671c89b14
commit 766b4b901f
2 changed files with 31 additions and 1 deletions
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixDefaultForUserNotes extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function ($table) {
$table->text('notes')->nullable()->default(NULL);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}