Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow string indexType in index creation #4791

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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