方法dropCulomn不存在

时间:2019-07-10 00:52:24

标签: php laravel

当我运行此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');
        });

0 个答案:

没有答案