Skip to content

Indexes are not created for MySQL during migration when included in ModelDefinition #2723

@Narrator

Description

@Narrator

Description / Steps to reproduce

Use the MySQL datasource, and define indexes in the model definition like so and run migration

@model({
    indexes: {
        uniqueIndex: {
            keys: {
                property: 1,
                anotherProperty: 1
            }
        }
    }
})

Current Behavior

The indexes are not actually created in the database

Expected Behavior

Indexes are created in the database

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