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!
When creating a typical Laravel migration, I can specify a composite index / unique / primary key like so:
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:
Though I suppose that would be differentiated from a table column that's supposed to named "index".
Perhaps:
Thanks for the handy tool you've made!