Skip to content

Commit

Permalink
Fixes #822 - make user notes field nullable default null
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jun 10, 2015
1 parent f671c89 commit 766b4b9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/config/version.php
Original file line number Diff line number Diff line change
@@ -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',
);
Original file line number Diff line number Diff line change
@@ -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()
{
//
}

}

0 comments on commit 766b4b9

Please sign in to comment.