Welcome Guest, Not a member yet? Register   Sign In
Run migration
#3

Solved problems with the controller
PHP Code:
<?php defined('BASEPATH') or exit('go home');


class 
Migrate extends CI_Controller
{
    /**
     * Запуск миграций в проекте.
     */
    public function index()
    {
        $this->load->library('migration');

        if ($this->migration->current() === FALSE)
        {
            show_error($this->migration->error_string());
        }
    }


Reply


Messages In This Thread
Run migration - by nefone - 12-28-2019, 06:31 AM
RE: Run migration - by jreklund - 12-29-2019, 03:19 AM
RE: Run migration - by nefone - 12-30-2019, 10:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB