_db_create_index_sql

Versions
6
_db_create_index_sql($table, $name, $fields)

▾ 2 functions call _db_create_index_sql()

db_add_index in includes/database.pgsql.inc
Add an index.
db_create_table_sql in includes/database.pgsql.inc
Generate SQL to create a new table from a Drupal schema definition.

Code

includes/database.pgsql.inc, line 531

<?php
function _db_create_index_sql($table, $name, $fields) {
  $query = 'CREATE INDEX {'. $table .'}_'. $name .'_idx ON {'. $table .'} (';
  $query .= _db_create_key_sql($fields) .')';
  return $query;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.