Skip to content
Snippets Groups Projects
Migrate.php 475 B
Newer Older
  • Learn to ignore specific revisions
  • /**
     * @copyright  2020 Podlibre
     * @license    https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
     * @link       https://castopod.org/
     */
    
    use CodeIgniter\Controller;
    
    
    class Migrate extends Controller
    {
        public function index()
        {
            $migrate = \Config\Services::migrations();
    
            try {
                $migrate->latest();
            } catch (\Exception $e) {
                // Do something with the error here...
            }
        }
    }