From 33cc89a7115fec85830720cec0a1e65bb802e8f0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 24 Mar 2012 19:52:40 -0500 Subject: [PATCH] Improving upgrade guide. --- changes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changes.md b/changes.md index e55d69fd..31052ae4 100644 --- a/changes.md +++ b/changes.md @@ -56,6 +56,12 @@ ### Prefix Laravel migration created indexes with their table name. If you have created indexes on tables using the Laravel migration system and you used to the default index naming scheme provided by Laravel, prefix the index names with their table name on your database. So, if the current index name is "id_unique" on the "users" table, make the index name "users_id_unique". +### Add alias for Eloquent in your application configuration. + +Add the following to the **aliases** array in your **application/config/application.php** file: + + 'Eloquent' => 'Laravel\\Eloquent', + ### Update Eloquent many-to-many tables. Eloquent now maintains **created_at** and **updated_at** column on many-to-many intermediate tables by default. Simply add these columns to your tables. Also, many-to-many tables are now the singular model names concatenated with an underscore. For example, if the relationship is between User and Role, the intermediate table name should be **role_user**.