-1
試圖改變表「ROLE_USER」改變現場「user_id說明」的屬性爲「無符號」添加一個外鍵約束修改表字段的屬性值UNSIGNED - 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');
});
是不是正確的方式改變字段的屬性值?
我正在運行時異常'Changing columns for table "role_users" requires Doctrine DBAL';