| Versionen | |
|---|---|
| drupal7 | DatabaseSchema_pgsql::renameTable(&$ret, $table, $new_name) |
Rename a table.
$ret Array to which query results will be added.
$table The table to be renamed.
$new_name The new name for the table.
includes/
<?php
function renameTable(&$ret, $table, $new_name) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} RENAME TO {' . $new_name . '}');
}
?>
Kommentare
Kommentar hinzufügen