Skip to content

Commit

Permalink
Allow string indexType in index creation (#4791) (#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCavadenti committed Nov 2, 2021
1 parent 4e2bbe8 commit 0f4356a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/index.d.ts
Expand Up @@ -2045,6 +2045,11 @@ export declare namespace Knex {
primary(columnNames: readonly string[], options?: Readonly<{constraintName?: string, deferrable?: deferrableType}>): TableBuilder;
/** @deprecated */
primary(columnNames: readonly string[], constraintName?: string): TableBuilder;
index(
columnNames: string | readonly (string | Raw)[],
indexName?: string,
indexType?: string
): TableBuilder;
index(
columnNames: string | readonly (string | Raw)[],
indexName?: string,
Expand Down Expand Up @@ -2131,6 +2136,7 @@ export declare namespace Knex {
indexName?: string,
options?: Readonly<{indexType?: string, predicate?: QueryBuilder}>
): ColumnBuilder;
index(indexName?: string, indexType?: string): ColumnBuilder;
}

interface SqlLiteColumnBuilder extends ColumnBuilder {
Expand Down

0 comments on commit 0f4356a

Please sign in to comment.