src/DataStore/src/TableGateway/TableManagerMysql.php
protected function create($tableName, $tableConfig = null)
    {
        $tableConfig = is_null($tableConfig) ? $tableConfig = $tableName : $tableConfig;
        $createTable = $this->createCreateTable($tableName, $this->getTableConfig($tableConfig));
        $sql = $this->getCreateTableSql($createTable, $tableName);

        return $this->db->query($sql, Adapter\Adapter::QUERY_MODE_EXECUTE);
    }
protected function create($tableName, $tableConfig = null)
    {
        $tableConfig = is_null($tableConfig) ? $tableConfig = $tableName : $tableConfig;
        $createTable = $this->createCreateTable($tableName, $this->getTableConfig($tableConfig));
        $sql = $this->getCreateTableSql($createTable, $tableName);

        return $this->db->query($sql, Adapter\Adapter::QUERY_MODE_EXECUTE);
    }
protected function create ( $ tableName , $ tableConfig = null ) { $ tableConfig = is_null ( $ tableConfig ) ? $ tableConfig = $ tableName : $ tableConfig ; $ createTable = $ this -> createCreateTable ( $ tableName , $ this -> getTableConfig ( $ tableConfig ) ) ; $ sql = $ this -> getCreateTableSql ( $ createTable , $ tableName ) ; return $ this -> db -> query ( $ sql , Adapter \ Adapter :: QUERY_MODE_EXECUTE ) ; }
Creates table by its name and config

@param $tableName
@param $tableConfig
@return Adapter\Driver\StatementInterface|\Zend\Db\ResultSet\ResultSet
@throws Exception
Creates table by its name and config