O'Reilly logo

FuelPHP Application Development Blueprints by Sébastien Drouyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Migrating part 1

Now, execute the migration file that has been generated:

php oil refine migrate

If you request the URL http://myblog.app/admin and try to log in, an error will be thrown because no table handling our users exist. To create this table (and all the other ones necessary for the Ormauth driver), you have to execute the Auth package migrations. This is done using the following command:

php oil refine migrate --packages=auth

The oil refine migrate command allows you to specify which modules and packages you want to migrate. You can even choose to execute all migrations (from your applications, modules, and packages) with the following command:

php oil refine migrate -all

Though in our case it doesn't make any difference, be aware that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required