Piwik\Updates\Updates_0_2_10::getMigrations PHP Метод

getMigrations() публичный Метод

public getMigrations ( Updater $updater )
$updater Piwik\Updater
    public function getMigrations(Updater $updater)
    {
        $tableNotExistsError = Updater\Migration\Db::ERROR_CODE_TABLE_NOT_EXISTS;
        return array($this->migration->db->createTable('option', array('idoption' => 'BIGINT NOT NULL AUTO_INCREMENT', 'option_name' => 'VARCHAR( 64 ) NOT NULL', 'option_value' => 'LONGTEXT NOT NULL'), array('idoption', 'option_name')), $this->migration->db->changeColumnType('log_visit', 'location_provider', 'VARCHAR( 100 ) DEFAULT NULL'), $this->migration->db->changeColumnTypes('logger_api_call', array('parameter_names_default_values' => 'TEXT', 'parameter_values' => 'TEXT', 'returned_value' => 'TEXT'))->addErrorCodeToIgnore($tableNotExistsError), $this->migration->db->changeColumnType('logger_error', 'message', 'TEXT')->addErrorCodeToIgnore($tableNotExistsError), $this->migration->db->changeColumnType('logger_exception', 'message', 'TEXT')->addErrorCodeToIgnore($tableNotExistsError), $this->migration->db->changeColumnType('logger_message', 'message', 'TEXT')->addErrorCodeToIgnore($tableNotExistsError), $this->migration->db->changeColumnType('site', 'feedburnerName', 'VARCHAR( 100 ) DEFAULT NULL'));
    }