src/DataStore/src/TableGateway/TableManagerMysql.php
public function createTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            throw new RuntimeException("Table with name {$tableName} is exist. Use rewriteTable()");
        }

        return $this->create($tableName, $tableConfig);
    }
public function createTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            throw new RuntimeException("Table with name {$tableName} is exist. Use rewriteTable()");
        }

        return $this->create($tableName, $tableConfig);
    }
public function createTable ( $ tableName , $ tableConfig = null ) { if ( $ this -> hasTable ( $ tableName ) ) { throw new RuntimeException ( "Table with name {$tableName} is exist. Use rewriteTable()" ) ; } return $ this -> create ( $ tableName , $ tableConfig ) ; }
Preparing method of creating table

Checks if the table exists and than if one don't creates the new table

@param string $tableName
@param string $tableConfig
@return mixed
@throws RuntimeException
@throws Exception
Preparing method of creating table