I use some changed Ormauth for my own needs. In fact I changed only schema with my additional migration and make my own models in /fuel/apps/classes/model/auth/*
It is all ok till I tried revert migrations to 0 and reapply it again. I encountered with problem: Auth package migrations use models for making some work, but they doesn't load its own models, and they loads mine. At this early moment schema is not changed yet and my models do not correspond it - this causes an error.
May be I need oil reqests use without registering my model with Autoloader. How can I distinguish oil and web requests?
If you extend, you should make sure to remain compatible. You obviously havent, so that is what you need to fix.
Since you have extended, migrations will use your extended version, that is the entire idea behind framework class extensions in Fuel...
You can create dependencies in migrations by returning false in your up() or down() method. For example, if your migrations tests in up() for the existence of the "users" table, it will always run after the Auth migrations have run. It allows you to alter the sequence in which migrations will run.
May be as great solution you are right, but for simpliest way it enough to make oil working with Auth models. So I need to distinguish oil and web requests in bootstrap.php and add condition for registering my models with Autoloader.
Since I don't use my models in my migrations it will be ok to allow oil works always with original Auth models.
Is there an easy way to distinguish this requests?