就是这个表,运行命令后保存,我把sql语句复制出来,发现tinyInteger字段,默认被设置为主键,所以报错,求解
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('username')->unique();
$table->string('email')->unique();
$table->string('telephone')->unique();
$table->string('qq')->unique();
$table->string('weixin')->unique();
$table->string('sina')->unique();
$table->string('password', 60);
$table->string('name',50);
$table->string('face');
$table->tinyInteger('sex',1);
$table->integer('age',3);
$table->string('intro');
$table->string('idcard');
$table->string('bcard');
$table->string('acard');
$table->string('provincecode');
$table->string('citycode');
$table->string('areacode');
$table->string('district _id');
$table->string('address');
$table->tinyInteger('is_check',1);
$table->tinyInteger('is_look',1);
$table->tinyInteger('status',1);
$table->tinyInteger('type',1);
$table->integer('login_counts',11);
$table->timestamp('login_time');
$table->string('login_ip');
$table->timestamp('last_time');
$table->string('last_ip');
$table->decimal('total_money',11,2);
$table->decimal('get_money',11,2);
$table->decimal('could_money',11,2);
$table->rememberToken();
$table->timestamps();
});