Sentry 2 and Laravel 4 adding fields to the user model

cartalyst-sentry, frameworks, laravel, laravel-4, php

Solution

The purpose of migrations is versioning of the database structure. The answer to any question similar to "where should I put database changes?" is always: "in a new migration", because then you're able to rollback changes.

In this case, I think I would first add Sentry 2 to your project and commit "Added Sentry 2". After, I would create a new migration with your desired changes, then commit: "Added fields x y and z to Users table".

See also the introduction paragraph of the documentation: http://four.laravel.com/docs/migrations

Problem

Im trying to add fields to the Users model that is based around Sentry 2 for Laravel 4. I want to do it properly with migrations. Is there a way to simply add to the sentry 2 migrations? or should i simply make my own migrations and add the required extra fields? any guidance with the framework would be awesome!

Original source