Skip to content

Commit

Permalink
createIndex doc (#524)
Browse files Browse the repository at this point in the history
* Updates to docs - specifying schema for opclass

* Fix definition file - CreateIndexOptions
  • Loading branch information
DylanYang0523 authored and dolezel committed Dec 2, 2019
1 parent 9825ff3 commit 621bc50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- `unique` _[boolean]_ - set to true if this is a unique index
- `where` _[string]_ - raw sql for where clause of index
- `concurrently` _[boolean]_ - create this index concurrently
- `opclass` _[string]_ - name of an operator class to use
- `opclass` _[[Name](migrations.md#type)]_ - name of an operator class to use
- `method` _[string]_ - btree | hash | gist | spgist | gin

**Aliases:** `addIndex`
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface CreateIndexOptions {
unique?: boolean
where?: string
concurrently?: boolean
opclass?: string
opclass?: Name
method?: 'btree' | 'hash' | 'gist' | 'spgist' | 'gin'
}

Expand Down

0 comments on commit 621bc50

Please sign in to comment.