Updated change-log. Prepend table names to default index names in schema.

This commit is contained in:
Taylor Otwell 2012-03-22 09:11:51 -05:00
parent 453d4154f2
commit e5b3b196ab
2 changed files with 3 additions and 2 deletions

View File

@ -25,3 +25,4 @@ Changes for 3.1:
- Fixed table prefix bug.
- Added Form::macro method.
- Added Route::forward method.
- Prepend table name to default index names in schema.

View File

@ -136,7 +136,7 @@ public function key($type, $columns, $name)
// 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'));