public function getUniqueDDL(Unique $unique)
 {
     return sprintf('CONSTRAINT %s UNIQUE (%s)', $this->quoteIdentifier($unique->getName()), $this->getColumnListDDL($unique->getColumns()));
 }
Example #2
0
 /**
  * Builds the DDL SQL for a Unique constraint object.
  *
  * @param      Unique $unique
  * @return     string
  */
 public function getUniqueDDL(Unique $unique)
 {
     return sprintf('UNIQUE (%s)', $this->getColumnListDDL($unique->getColumns()));
 }