db_rename_table

  1. drupal
    1. drupal6 database.mysql-common.inc
    2. drupal6 database.pgsql.inc
    3. drupal7
Versionen
drupal6 – drupal7 db_rename_table(&$ret, $table, $new_name)

Rename a table.

Übergabeparameter

$ret Array to which query results will be added.

$table The table to be renamed.

$new_name The new name for the table.

Verwandte Themen

▾ 10 functions call db_rename_table()

comment_update_7002 in modules/comment/comment.install
Rename {comments} table to {comment}.
filter_update_7002 in modules/filter/filter.install
Rename {filters} table to {filter} and {filter_formats} table to {filter_format}.
node_update_7001 in modules/node/node.install
Rename {node_revisions} table to {node_revision}.
poll_update_7001 in modules/poll/poll.install
Rename {poll_choices} table to {poll_choice} and {poll_votes} to {poll_vote}.
profile_update_7001 in modules/profile/profile.install
Rename {profile_fields} table to {profile_field} and {profile_values} to {profile_value}.
SchemaTestCase::testSchema in modules/simpletest/tests/schema.test
system_update_6022 in modules/system/system.install
Update files tables to associate files to a uid by default instead of a nid. Rename file_revisions to upload since it should only be used by the upload module used by upload to link files to nodes.
system_update_6030 in modules/system/system.install
Add the tables required by actions.inc.
system_update_7012 in modules/system/system.install
Rename {blocks} table to {block}, {blocks_roles} to {block_role} and {boxes} to {box}.
taxonomy_update_7001 in modules/taxonomy/taxonomy.install
Rename taxonomy tables.

Code

includes/database/database.inc, line 2202

<?php
function db_rename_table(&$ret, $table, $new_name) {
  return Database::getConnection()->schema()->renameTable($ret, $table, $new_name);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen