Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Upgrading to Sphene 0.5?

Page: Previous 1 2

David Abrahams said @ 2008-12-28 20:19:52:
OK, but it seems pretty clear to me that this is a bug in Sphene. If a database update fails it should not be marked as completed, should it?
i think you are right.. it is currently not behaving correctly on error.. but in my opinion it should still mark it as complete.. but warn the user about it.. and also tell the user which statements to run by hand (since these are mostly alter statements there is no transaction .. hence no need to run all statements from scratch)

i have created an issue for this problem: http://code.google.com/p/sct-project/issues/detail?id=138
Hey, we have Signatures !!! Great, isn't it ? ;)
I can't imagine what could possibly justify labelling an incomplete
operation as complete. Could you explain, please?

Thanks.
Dave Abrahams
Boostpro Computing
http://www.boostpro.com
if it would be marked as complete when it fails.. there is no way to ever mark it as complete.. if you run it by hand and then again run a syncdb it will fail because all changes were already applied by the user..

there is no reasonable way to detect if all changes were successfully completed by the user imho..

the changelog was never meant to be a complete schema evolution framework or something like that.. just a small helper to keep track of what changes are required for an installation after an update .. and i think it handles this job good enough ..
Hey, we have Signatures !!! Great, isn't it ? ;)

Page: Previous 1 2

Please login to post a reply.



Powered by Sphene Community Tools