abstract public function DatabaseSchema::renameTable

7.x schema.inc abstract public DatabaseSchema::renameTable($table, $new_name)

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 drupal-7.x/includes/database/mysql/schema.inc
Rename a table.
DatabaseSchema_pgsql::renameTable in drupal-7.x/includes/database/pgsql/schema.inc
Rename a table.
DatabaseSchema_sqlite::renameTable in drupal-7.x/includes/database/sqlite/schema.inc
Rename a table.

File

drupal-7.x/includes/database/schema.inc, line 391
Generic Database schema code.

Class

DatabaseSchema

Code

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