Exemplo n.º 1
0
 /**
  * Return DDL for sequence modification (drop with subsequent create).
  *
  * @param BaseObject $target Target object.
  * @param string $dbType Database type (ORACLE only).
  *
  * @return array|string
  */
 public function getModifyDdl(BaseObject $target, $dbType = '')
 {
     switch ($dbType) {
         case "ORACLE":
             return array($this->getDropDdl($dbType), $target->getCreateDdl($dbType));
         default:
             return "// " . get_class($this) . ":getDropDdl for database type [" . $dbType . "] not implemented";
     }
 }
Exemplo n.º 2
0
 /**
  * Return DDL for constraint modification.
  *
  * @param BaseObject $target Target object.
  * @param string $dbType Database type (MYSQL, ORACLE or MSSQL).
  *
  * @return array|string
  */
 public function getModifyDdl(BaseObject $target, $dbType = '')
 {
     return array($this->getDropDdl($dbType), $target->getCreateDdl($dbType));
 }