Update Guide

Release 2.0

What’s New

How to Update

Route::get('update', function () {
	$updateSqlFile = storage_path('database/updates/from-1.7-to-2.0/update.sql');
    if (file_exists($updateSqlFile)) {
        \DB::table('settings')->where('key', '=', 'purchase_code')->delete();
        $sql = file_get_contents($updateSqlFile);
        $sql = str_replace('<<prefix>>', \DB::getTablePrefix(), $sql);
        \DB::unprepared($sql);
    }

	return 'Success';
});