mirror of
https://github.com/knex/knex.git
synced 2025-12-29 07:59:31 +00:00
Allow string indexType in index creation (#4791)
This commit is contained in:
parent
b7d9a5d927
commit
f200e668c7
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user