On 10/23/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> Jorge Godoy <[EMAIL PROTECTED]> writes:
>
> > Providing the information on how to upgrade looks like the best fix to me.
>
> Here's what need to be changed / checked:
>
> 1. Make sure that in app.cfg there's a line like this one:
>
> visit.soprovider.model = "${package}.model.Visit"
>
> 2. Change class VisitIdentity in model.py removing the metaclass
> sqlmeta and the alternate table name
>
there is no meta in that class
http://trac.turbogears.org/turbogears/browser/branches/1.0/turbogears/qstemplates/quickstart/%2Bpackage%2B/model.py_tmpl?rev=1998#L48
> 3. Run 'tg-admin sql create'
>
> 4. If you need to keep some kind of history, then it is interesting to
> run the followin SQL command
>
> insert into visit_identity (id, visit_key, user_id)
> select id, visit_key, user_id from tg_visit_identity;
>
> so that your data gets migrated from one table to the other
>
> 5. Remove the old table (SQL again):
>
> drop table tg_visit_identity;
>
just out of curiosity commenting out this line
visit.soprovider.model = "${package}.model.Visit"
should revert you back to using the tables inside the model this is an
"alternative" migration path.
>
>
> And sorry if my messages sounded more rude than they should. I should have
> provided this "doc patch" before.
>
np that's why this is opensource so we could point out other people's
mistakes and fix them for a better software :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---