cartalyst/sentry — pull request #73 by hdias (2012-03-14 01:55:42+00:00)
Title: 2.0/develop

ok first thx for the package... im using it in my current project and its great, so time to give a little bit back.

added portuguese lang file

added foreign keys with the necessary reference options, fixed the problems that fk created nothing big just the order of things in migrations (remove child before parent...). in the last commit removed also unnecessary code should be self explanatory. no need to do extra queries to the database and use transations to delete child records, especially in the join table cause it double cascades to the other parent table ( and we dont want to delete all the users from a group when we delete it ^^ ).

added unsigned true to some columns just a little optimization

added primary keys innodb works better with a explicitly define a primary key if not the engine needs to find a suitable unique index or use a hidden internal row ID.

fixed config not being loaded for the last migration down method

tested everything in my project develop branch and so far so good. thx hope u find it useful.