protected function DatabaseSchema_pgsql::_createIndexSql in Drupal 7
2 calls to DatabaseSchema_pgsql::_createIndexSql()
- DatabaseSchema_pgsql::addIndex in includes/
database/ pgsql/ schema.inc - Add an index.
- DatabaseSchema_pgsql::createTableSql in includes/
database/ pgsql/ schema.inc - Generate SQL to create a new table from a Drupal schema definition.
File
- includes/
database/ pgsql/ schema.inc, line 582 - Database schema code for PostgreSQL database servers.
Class
Code
protected function _createIndexSql($table, $name, $fields) {
$query = 'CREATE INDEX "' . $this
->prefixNonTable($table, $name, 'idx') . '" ON {' . $table . '} (';
$query .= $this
->_createKeySql($fields) . ')';
return $query;
}