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
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
return array (
'app_version' => 'v1.2.7-master',
'hash_version' => 'v1.2.7-master-38-gf743bac',
'hash_version' => 'v1.2.7-master-39-g03bd149',
);
@@ -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()
{
//
}
}