diff --git a/application/Controllers/Admin/Migrate.php b/application/Controllers/Admin/Migrate.php index 95fd8cf..c357c87 100644 --- a/application/Controllers/Admin/Migrate.php +++ b/application/Controllers/Admin/Migrate.php @@ -1,21 +1,50 @@ + * @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(); + $config = new \Config\Aauth(); $migrate = \Config\Services::migrations(); try { - $migrate->latest('App', $config->dbProfile); + $migrate->latest('App', $config->dbProfile); } catch (\Exception $e) { - // Do something with the error here... + // Do something with the error here... } } }