当我运行此cmd php artisan migrate:rollback时,他给我错误,为什么 发挥作用
Schema::table('pointages', function (Blueprint $table) {
$table->integer('salarie_id')->unsigned()->after('id');
$table->foreign('salarie_id')->references('id')->on('salaries');
});
功能关闭
Schema::table('pointages', function (Blueprint $table) {
$table->dropForeign(['salarie_id']);
$table->dropCulomn('salarie_id');
});