Skip to content

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

@rachet-khanal

Description

@rachet-khanal

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 )})
);
}
;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions