index names may be specified on fluent setup.

This commit is contained in:
Taylor Otwell
2012-01-24 08:43:12 -06:00
parent 4806bccbb6
commit 67696d8114
3 changed files with 6 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ class Schema {
*/
public static function execute($table)
{
die('here');
foreach ($table->commands as $command)
{
$connection = DB::connection($table->connection);
@@ -82,9 +83,9 @@ class Schema {
{
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
{
if ($column->$key === true)
if (isset($column->attributes[$key]))
{
$table->$key($column->name);
$table->$key($column->name, $column->$key);
}
}
}