Essayer de modifier table « role_user » pour modifier le champ « user_id » attribut « non signé » pour ajouter une contrainte de clé étrangèrevaleur d'attribut de champ de table Alter unsigned - migration Mysql Laravel
Schema::table('role_user', function (Blueprint $table) {
$table->integer('user_id')->unsigned()->nullable()->change();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
});
Est-il droit chemin changer la valeur d'attribut du champ?
Je reçois exception d'exécution 'Changing columns for table "role_users" requires Doctrine DBAL';