From 31c27f657f322aa79daffe6525690d66f6c88819 Mon Sep 17 00:00:00 2001 From: printempw Date: Mon, 15 Aug 2016 12:27:27 +0800 Subject: [PATCH] fix default value of some columns --- setup/tables.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/tables.php b/setup/tables.php index 7af0defe..df4e920f 100644 --- a/setup/tables.php +++ b/setup/tables.php @@ -3,13 +3,13 @@ * @Author: printempw * @Date: 2016-08-06 19:39:12 * @Last Modified by: printempw - * @Last Modified time: 2016-08-06 19:39:25 + * @Last Modified time: 2016-08-15 12:24:34 */ Schema::create('users', function($table) { $table->increments('uid'); $table->string('email', 100); - $table->string('nickname', 50); + $table->string('nickname', 50)->default(''); $table->integer('score'); $table->integer('avatar')->default('0'); $table->string('password', 255); @@ -21,7 +21,7 @@ Schema::create('users', function($table) { Schema::create('closets', function($table) { $table->increments('uid'); - $table->longText('textures')->default(''); + $table->longText('textures'); }); Schema::create('players', function($table) {