public function getSql()
    {
        $escapement = new Escapement();

        $sql = sprintf('CREATE TABLE %s(%s);'
            , $escapement->escape($this->table->getQualifiedName())
            , $this->getColumnsSql() . $this->getConstraintsSql());

        $tableDescription = $this->table->getDescription();
        if (!empty($tableDescription)) {
        $sql .= sprintf("COMMENT ON TABLE %s IS '%s';",
            $escapement->escape($this->table->getQualifiedName()), $tableDescription);
        }
        $sql .= $this->getColumnComments();

        return $sql;
    }
public function getSql()
    {
        $escapement = new Escapement();

        $sql = sprintf('CREATE TABLE %s(%s);'
            , $escapement->escape($this->table->getQualifiedName())
            , $this->getColumnsSql() . $this->getConstraintsSql());

        $tableDescription = $this->table->getDescription();
        if (!empty($tableDescription)) {
        $sql .= sprintf("COMMENT ON TABLE %s IS '%s';",
            $escapement->escape($this->table->getQualifiedName()), $tableDescription);
        }
        $sql .= $this->getColumnComments();

        return $sql;
    }
{@inheritdoc}