You are here

abstract public function DatabaseSchema::renameTable in Drupal 7

Rename a table.

Parameters

$table: The table to be renamed.

$new_name: The new name for the table.

Throws

DatabaseSchemaObjectDoesNotExistException If the specified table doesn't exist.

DatabaseSchemaObjectExistsException If a table with the specified new name already exists.

3 methods override DatabaseSchema::renameTable()
DatabaseSchema_mysql::renameTable in includes/database/mysql/schema.inc
Rename a table.
DatabaseSchema_pgsql::renameTable in includes/database/pgsql/schema.inc
Rename a table.
DatabaseSchema_sqlite::renameTable in includes/database/sqlite/schema.inc
Rename a table.

File

includes/database/schema.inc, line 465

Class

DatabaseSchema
Base class for database schema definitions.

Code

public abstract function renameTable($table, $new_name);