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

Request: enable "indexType" on MySQL dialect. #1840

Closed
musou1500 opened this issue Dec 23, 2016 · 7 comments
Closed

Request: enable "indexType" on MySQL dialect. #1840

musou1500 opened this issue Dec 23, 2016 · 7 comments

Comments

@musou1500
Copy link

I want to create spatial index to specific column by using this feature.
I know knex.raw make it possible to do.

@douglasjunior
Copy link
Contributor

douglasjunior commented Nov 5, 2018

This is very important, how can I create an index of type FULLTEXT?

@elhigu
Copy link
Member

elhigu commented Nov 5, 2018

@douglasjunior with knex.schema.raw() at least. I cannot remember if passing index type was already fixed.

@kibertoad
Copy link
Collaborator

@douglasjunior According to documentation, it is supported, see https://knexjs.org/#Schema-index
If you try and it doesn't work, please consider raising a PR with failing test for it, then we could address it rapidly.

@douglasjunior
Copy link
Contributor

douglasjunior commented Nov 5, 2018

@kibertoad not work with MySQL.

I'm writing a PR right now. 😆

@douglasjunior
Copy link
Contributor

Done #2890.

@glensc
Copy link
Contributor

glensc commented Aug 23, 2021

@knex: perhaps close, as indexType was added with #2890.

@glensc
Copy link
Contributor

glensc commented Aug 23, 2021

  await knex.schema.alterTable('article_attribute', (table) => {
    table.index('value_text', 'article_attribute_value_text', 'FULLTEXT');
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants