主义DBAL表没有改变

问题描述:

虽然我已经添加学说/ DBAL在composer.json和更新的作曲家,但即便如此,面对一个错误主义DBAL表没有改变

完整性约束违规:1062重复条目'关键'users_oauthprovider_id_unique

Schema::table('users', function (Blueprint $table) { 
      $table->string('password')->nullable()->change(); 
      $table->string('oauthprovider'); 
      $table->string('oauthprovider_id')->unique(); 
     }); 

尝试使oauthprovider_id为空。