Пример #1
0
 /**
  * Renames a table in the database.
  *
  * @param   string  $oldTable  The name of the table to be renamed
  * @param   string  $newTable  The new name for the table.
  * @param   string  $backup    Non-MySQL: Table prefix
  * @param   string  $prefix    Non-MySQL: For the table - used to rename constraints in non-mysql databases
  *
  * @return  self               Returns this object to support chaining.
  *
  * @throws  \RuntimeException
  */
 public function renameTable($oldTable, $newTable, $backup = null, $prefix = null)
 {
     $this->_db->renameTable($oldTable, $newTable, $backup, $prefix);
     return $this;
 }