You are here

function _db_create_index_sql in Drupal 6

Related topics

2 calls to _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.

File

includes/database.pgsql.inc, line 522
Database interface code for PostgreSQL database servers.

Code

function _db_create_index_sql($table, $name, $fields) {
  $query = 'CREATE INDEX {' . $table . '}_' . $name . '_idx ON {' . $table . '} (';
  $query .= _db_create_key_sql($fields) . ')';
  return $query;
}