这是尝试进行迁移时出现的错误:sqlstate[42000]:语法错误或访问冲突:1064您的sql语法有错误;请查看与mysql服务器版本对应的手册,以获得使用near'by的正确语法 batch
asc公司, migration
1号线asc
代理迁移:
Schema::create('agents', function (Blueprint $table) {
$table->increments('id');
$table->string('first_name');
$table->string('last_name');
$table->string('phone');
$table->string('email')->unique();
$table->string('password');
$table->string('agency_name')->nullable();
$table->string('address');
$table->string('city');
$table->string('zip_code');
$table->string('status');
$table->timestamps();
用户迁移
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('first_name');
$table->string('last_name');
$table->string('phone');
$table->string('email')->unique();
$table->string('password');
$table->string('agency_name')->nullable();
$table->string('address');
$table->string('city');
$table->string('zipcode');
$table->string('user_type');
$table->string('status');
$table->string('otp');
$table->rememberToken();
$table->timestamps();
});
这不是移民问题。我删除了所有迁移,并尝试迁移重置和刷新错误。我删除了所有的表,并尝试只迁移一个表,即laravelusers迁移。仍然是错误。
暂无答案!
目前还没有任何答案,快来回答吧!