Schema::_createIndexSql

protected Schema::_createIndexSql($table, $name, $fields)

File

core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 798

Class

Schema
PostgreSQL implementation of \Drupal\Core\Database\Schema.

Namespace

Drupal\Core\Database\Driver\pgsql

Code

protected function _createIndexSql($table, $name, $fields) {
  $query = 'CREATE INDEX ' . $this->ensureIdentifiersLength($table, $name, 'idx') . ' ON {' . $table . '} (';
  $query .= $this->_createKeySql($fields) . ')';
  return $query;
}
doc_Drupal
2016-10-29 09:40:03
Comments
Leave a Comment

Please login to continue.