Allow string indexType in index creation (#4791)

This commit is contained in:
Olivier Cavadenti 2021-11-02 14:19:21 +01:00 committed by GitHub
parent b7d9a5d927
commit f200e668c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
types/index.d.ts vendored
View File

@ -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,
@ -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 {