* @author Raphael Jackstadt * @copyright 2014-2017 Emre Akay * @copyright 2018 Magefly * @license https://opensource.org/licenses/MIT MIT License * @link https://github.com/magefly/CodeIgniter-Aauth */ namespace App\Controllers\Admin; use CodeIgniter\Controller; /** * Aauth Admin/Migrate Controller. * * @package CodeIgniter-Aauth */ class Migrate extends Controller { /** * Index * * @return void */ public function index() { $config = new \Config\Aauth(); $migrate = \Config\Services::migrations(); try { $migrate->latest('App', $config->dbProfile); } catch (\Exception $e) { // Do something with the error here... } } }