function db_rename_table

Renames a table.

Parameters

$table: The current name of the table to be renamed.

$new_name: The new name for the table.

Related topics

14 calls to db_rename_table()

File

drupal/includes/database/database.inc, line 2864
Core systems for the database layer.

Code

function db_rename_table($table, $new_name) {
  return Database::getConnection()
    ->schema()
    ->renameTable($table, $new_name);
}