/** * 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"; } }
/** * 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)); }