Forum OpenACS Development: Re: Can't login after upgrading to 5.5

Collapse
Posted by Dave Bauer on
Cool :)

This happens anytime we modify acs-auth. Its fundamentally broken. I guess we need some sort of init file or something that upgrades it for you.

Anyone have a better idea?

Collapse
Posted by Don Baccus on
Why can't you write a proper APM upgrade file to add the column to the table and fill it in?
Collapse
Posted by Don Baccus on
I see, you're not logged in so can't upgrade.

So a smart init file makes sense, I guess.

We can't release with it in the current state, though, that's for sure.

Collapse
Posted by Emmanuelle Raffenne on
Dave,

I have no better idea. An init file is the only option I can think of.

Collapse
Posted by Gustaf Neumann on
Another option is to make the query (queries) version dependent. This means to have both the old- and new-style queries in the code and use the right one depending on the version. Hopefully, apm does not think it as already upgraded; in the worst case, one has to check the db schema whether the column exists already.