Skip to content

Commit

Permalink
Allow string indexType in index creation (knex#4791)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCavadenti committed Nov 4, 2021
1 parent a348e13 commit 4eaee8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/index.d.ts
Expand Up @@ -2048,6 +2048,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 @@ -2134,6 +2139,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 4eaee8c

Please sign in to comment.