Updated change-log. Prepend table names to default index names in schema.
This commit is contained in:
parent
453d4154f2
commit
e5b3b196ab
|
@ -24,4 +24,5 @@ Changes for 3.1:
|
||||||
- Added "match" validation rule.
|
- Added "match" validation rule.
|
||||||
- Fixed table prefix bug.
|
- Fixed table prefix bug.
|
||||||
- Added Form::macro method.
|
- Added Form::macro method.
|
||||||
- Added Route::forward method.
|
- Added Route::forward method.
|
||||||
|
- Prepend table name to default index names in schema.
|
|
@ -136,7 +136,7 @@ public function key($type, $columns, $name)
|
||||||
// the index that can be used when dropping indexes.
|
// the index that can be used when dropping indexes.
|
||||||
if (is_null($name))
|
if (is_null($name))
|
||||||
{
|
{
|
||||||
$name = implode('_', $columns).'_'.$type;
|
$name = $this->name.implode('_', $columns).'_'.$type;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->command($type, compact('name', 'columns'));
|
return $this->command($type, compact('name', 'columns'));
|
||||||
|
|
Loading…
Reference in New Issue