src/Database/Migration/Generator/MySqlAdapter.php
public function getTableCreateSql($tableName)
    {
        $sql = sprintf('SHOW CREATE TABLE %s', $this->ident($tableName));
        $result = $this->pdo->query($sql)->fetch();

        return $result['CREATE TABLE'];
    }
public function getTableCreateSql($tableName)
    {
        $sql = sprintf('SHOW CREATE TABLE %s', $this->ident($tableName));
        $result = $this->pdo->query($sql)->fetch();

        return $result['CREATE TABLE'];
    }
public function getTableCreateSql ( $ tableName ) { $ sql = sprintf ( 'SHOW CREATE TABLE %s' , $ this -> ident ( $ tableName ) ) ; $ result = $ this -> pdo -> query ( $ sql ) -> fetch ( ) ; return $ result [ 'CREATE TABLE' ] ; }
Get SQL to create a table.

@param string $tableName

@return string
Get SQL to create a table .