db_rename_table
function db_rename_table
db_rename_table($table, $new_name)
Renames a table.
Parameters
$table: The current name of the table to be renamed.
$new_name: The new name for the table.
Related topics
File
- includes/database/database.inc, line 2841
- Core systems for the database layer.
Code
function db_rename_table($table, $new_name) { return Database::getConnection()->schema()->renameTable($table, $new_name); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_rename_table/7.x