【发布时间】:2017-07-20 09:24:48
【问题描述】:
虽然我在 composer.json 中添加了学说/dbal 并更新了 composer 但即便如此仍面临错误
违反完整性约束:1062 Duplicate entry '' for key 'users_oauthprovider_id_unique
Schema::table('users', function (Blueprint $table) {
$table->string('password')->nullable()->change();
$table->string('oauthprovider');
$table->string('oauthprovider_id')->unique();
});
【问题讨论】:
标签: laravel