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 it will execute even migrations for packages that are not defined in the always_load.packages
key of the APPPATH/config/config.php
configuration file. Some of you might have expected this behavior, but we felt that it was an important point to stress...