From e5b3b196ab716d870b8f8f8ab7b0c812a50faf28 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 22 Mar 2012 09:11:51 -0500 Subject: [PATCH] Updated change-log. Prepend table names to default index names in schema. --- changes.txt | 3 ++- laravel/database/schema/table.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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'));