db_add_index

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

Add an index.

Übergabeparameter

$ret Array to which query results will be added.

$table The table to be altered.

$name The name of the index.

$fields An array of field names.

Verwandte Themen

▾ 18 functions call db_add_index()

comment_update_6003 in modules/comment/comment.install
Add index to parent ID field.
dblog_update_7002 in modules/dblog/dblog.install
Add index on uid.
locale_update_6004 in modules/locale/locale.install
Fix remaining inconsistent indexes.
node_update_7002 in modules/node/node.install
Extend the node_promote_status index to include all fields required for the node page query.
system_update_1022 in modules/system/system.install
Add index on users created column.
system_update_6001 in modules/system/system.install
Add version id column to {term_node} to allow taxonomy module to use revisions.
system_update_6003 in modules/system/system.install
Add index on comments status column.
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
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_6023 in modules/system/system.install
system_update_6024 in modules/system/system.install
Add translation fields to nodes used by translation module.
system_update_6025 in modules/system/system.install
Increase the maximum length of node titles from 128 to 255.
system_update_6035 in modules/system/system.install
Change index on system table for better performance.
system_update_6043 in modules/system/system.install
Update table indices to make them more rational and useful.
system_update_6044 in modules/system/system.install
RC1 to RC2 index cleanup.
system_update_6049 in modules/system/system.install
Replace src index on the {url_alias} table with src, language.
system_update_7008 in modules/system/system.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
system_update_7018 in modules/system/system.install
Shorten the {system}.type column and add an index on type and name.

Code

includes/database/database.inc, line 2358

<?php
function db_add_index(&$ret, $table, $name, $fields) {
  return Database::getConnection()->schema()->addIndex($ret, $table, $name, $fields);
}
?>

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