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

File name upgrades from Knex v0.95 and unique index in mysql compiler #17

Open
rachet-khanal opened this issue Mar 10, 2021 · 0 comments

Comments

@rachet-khanal
Copy link

There are changes in the recent upgrade of v0.95 which now changes the names of files such as dialects/mysql/schema/tablecompiler into dialects/mysql/schema/mysql-tablecompiler.js.

Also unique() function builds query statement with {indexname}(columns) which needs a function similar to index and dropIndex in TableCompiler something like below to remove indexing?

unique(columns, indexName) {
this.pushQuery(
alter table ${this.tableName()} add unique (${this.formatter.columnize( columns )})
);
}
;

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

No branches or pull requests

1 participant