class UpdateForiegnKeyToAttendancesTable extends Migration
{
public function up()
{
Schema::disableForeignKeyConstraints();
// drop foreign keys
Schema::table('attendances', function (BluePrint $table) {
$table->dropForeign('attendances_employee_id');
});
//...
Schema::enableForeignKeyConstraints();
}
//...
}
Subscribe to the Email Newsletter