diff --git a/changes.txt b/changes.txt index ba30f948..4ee14fea 100644 --- a/changes.txt +++ b/changes.txt @@ -24,4 +24,5 @@ Changes for 3.1: - Added "match" validation rule. - Fixed table prefix bug. - Added Form::macro method. - - Added Route::forward method. \ No newline at end of file + - Added Route::forward method. + - Prepend table name to default index names in schema. \ No newline at end of file diff --git a/laravel/database/schema/table.php b/laravel/database/schema/table.php index 2665e4d7..add48770 100644 --- a/laravel/database/schema/table.php +++ b/laravel/database/schema/table.php @@ -136,7 +136,7 @@ class Table { // the index that can be used when dropping indexes. if (is_null($name)) { - $name = implode('_', $columns).'_'.$type; + $name = $this->name.implode('_', $columns).'_'.$type; } return $this->command($type, compact('name', 'columns'));