Victor Ng wrote: > The tests don't look like they're integrated with runtests.py at all.
no, they're standalone. > 3) Run reset_all_to_pre (note that this doesn't have a shebang at the top) > 5) Run reset_all_to_post (note that this script also doesn't have a > shebang at the top) we're all running bash, aren't we? ;p > So do basically something like this: > > cd branches/schema-evolution/tests/evolvedbtests > ./rest_all_to_pre > python manage.py syncdb > ./reset_all_to_post > python manage.py sqlevolve case01_add_field > python manage.py sqlevolve case02_rename_field > python manage.py sqlevolve case03_rename_model > python manage.py sqlevolve case04_change_flag > python manage.py sqlevolve case05_remove_field yep, except you should add: ./rest_all_to_pre python manage.py sqlevolve case01_add_field python manage.py sqlevolve case02_rename_field python manage.py sqlevolve case03_rename_model python manage.py sqlevolve case04_change_flag python manage.py sqlevolve case05_remove_field to prove it all works full circle. > There doesn't seem to be any automation around what the expected SQL > output is, and as far as I can tell, this only works on the mysql > backend. it should work on all three, with the exception of remove_field under sqlite (for obvious reasons) > The emitted output on my machine is always empty. I always get this: > > ~/svk-ws/remote/mb-django/branches/schema-evolution/tests/evolvedbtests> > python manage.py sqlevolve case01_add_field > BEGIN; > COMMIT; > Which is obviously not what I really want. > Any thoughts? check to make sure you've switched your symlinks from pre to post (or back again) since your last sync, and that the models actually are different than the tables in your db. (i can't tell you how many times this summer i was asking myself "wtf" for this exact reason) -- derek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
