Hi all,

I am trying to write a reentrant websetup.py for my app. I am using a
seed database used by other projects as well. Whenever I modify my
tables and initial data, I have to manually create/insert the
difference to this seed db. It would be very useful for us if we could
run setup-app to *update* the seed db rather than create it from
scratch. Did anyone do this before? What is the recommended way?

Thanks.

PS: create_all() api is reentrant, however we are having problems with
the add() api which causes integrity errors because of duplicate
primary keys. I wanted to see if there is a way to pull this off using
a single session object from sqlalchemy. I tried doing a flush() after
each add() but that causes the session to rollback if there is an
error requiring me to create a new session.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to