A 'users table could not be found' error is thrown when the database is empty.
Controller.cfc
public void function init() {
filters(through="getCurrentUser");
}
This is a totally valid exception.. However, this becomes an issue when trying to use a plugin such as dbmigrate to create the database schema, s the session check is run when using a plugin.
My workaround was to comment out the filter in Controllers.cfc until the database was created. Not a biggie, but a little painful when playing with database schema ideas.
Thanks for reporting that. I'll have to think of a work around. If you get any ideas, let me know. I'm going to rewrite some of the logic in the app as soon as I have some free time, hopefully within a month.
A 'users table could not be found' error is thrown when the database is empty.
Controller.cfc public void function init() { filters(through="getCurrentUser"); }
This is a totally valid exception.. However, this becomes an issue when trying to use a plugin such as dbmigrate to create the database schema, s the session check is run when using a plugin.
My workaround was to comment out the filter in Controllers.cfc until the database was created. Not a biggie, but a little painful when playing with database schema ideas.
I thought about adding a condition:
filters(through="getCurrentUser", condition="params.controller neq 'wheels'");
But this means you can't use the test frameworks to test session logic.. and also means requests to any installed plugins are not authenticated