public function getAddPrimaryKeyDDL(Table $table)
    {
        $pattern = "
ALTER TABLE %s ADD %s;
";

        return sprintf($pattern,
            $this->quoteIdentifier($table->getName()),
            $this->getPrimaryKeyDDL($table)
        );
    }
public function getAddPrimaryKeyDDL(Table $table)
    {
        $pattern = "
ALTER TABLE %s ADD %s;
";

        return sprintf($pattern,
            $this->quoteIdentifier($table->getName()),
            $this->getPrimaryKeyDDL($table)
        );
    }
public function getAddPrimaryKeyDDL ( Table $ table ) { $ pattern = "
ALTER TABLE %s ADD %s;
" ; return sprintf ( $ pattern , $ this -> quoteIdentifier ( $ table -> getName ( ) ) , $ this -> getPrimaryKeyDDL ( $ table ) ) ; }
Builds the DDL SQL to add the primary key of a table.

@param Table $table

@return string
Builds the DDL SQL to add the primary key of a table .