You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
413 B
21 lines
413 B
<?php namespace Magefly\Aauth\Controllers; |
|
|
|
use CodeIgniter\Controller; |
|
use Magefly\Aauth\Config\Aauth as AauthConfig; |
|
|
|
class Migrate extends Controller |
|
{ |
|
public function index() |
|
{ |
|
$config = new AauthConfig(); |
|
$migrate = \Config\Services::migrations(); |
|
try |
|
{ |
|
$migrate->latest('Magefly\Aauth', $config->dbProfile); |
|
} |
|
catch (\Exception $e) |
|
{ |
|
// Do something with the error here... |
|
} |
|
} |
|
}
|
|
|