Skip to content

Feature Suggestion: Composite Indexes #5

Description

@EdRands

When creating a typical Laravel migration, I can specify a composite index / unique / primary key like so:

$table->index(array('first_name', 'last_name'));

Here's the documentation.

For those times when they are needed, it would be nice to set them up in Larry, rather than add them afterwards. Example:

People
    first_name string
    last_name string
    index first_name, last_name;

Though I suppose that would be differentiated from a table column that's supposed to named "index".

Perhaps:

People
    first_name string
    last_name string; index first_name, last_name;

Thanks for the handy tool you've made!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions