public function getMigrations(Updater $updater)
    {
        // many different migrations are available to be used via $this->migration factory
        $migration1 = $this->migration->db->changeColumnType('log_visit', 'example', 'BOOLEAN NOT NULL');
        // you can also define custom SQL migrations. If you need to bind parameters, use `->boundSql()`
        $migration2 = $this->migration->db->sql($sqlQuery = 'SELECT 1');

        return array(
            // $migration1,
            // $migration2
        );
    }
public function getMigrations(Updater $updater)
    {
        // many different migrations are available to be used via $this->migration factory
        $migration1 = $this->migration->db->changeColumnType('log_visit', 'example', 'BOOLEAN NOT NULL');
        // you can also define custom SQL migrations. If you need to bind parameters, use `->boundSql()`
        $migration2 = $this->migration->db->sql($sqlQuery = 'SELECT 1');

        return array(
            // $migration1,
            // $migration2
        );
    }
public function getMigrations ( Updater $ updater ) { // many different migrations are available to be used via $this->migration factory $ migration1 = $ this -> migration -> db -> changeColumnType ( 'log_visit' , 'example' , 'BOOLEAN NOT NULL' ) ; // you can also define custom SQL migrations. If you need to bind parameters, use `->boundSql()` $ migration2 = $ this -> migration -> db -> sql ( $ sqlQuery = 'SELECT 1' ) ; return array ( // $migration1, // $migration2 ) ; }
Return database migrations to be executed in this update.

Database migrations should be defined here, instead of in `doUpdate()`, since this method is used
in the `core:update` command when displaying the queries an update will run. If you execute
migrations directly in `doUpdate()`, they won't be displayed to the user. Migrations will be executed in the
order as positioned in the returned array.

@param Updater $updater
@return Migration\Db[]
Return database migrations to be executed in this update .