Browse Source

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

Taylor Otwell 12 years ago
parent
commit
e5b3b196ab
2 changed files with 3 additions and 2 deletions
  1. 2 1
      changes.txt
  2. 1 1
      laravel/database/schema/table.php

+ 2 - 1
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.
+	- Added Route::forward method.
+	- Prepend table name to default index names in schema.

+ 1 - 1
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'));