Benjamin Buch schrieb:
> Is there somewhere a place in the documentation where SQL migration  
> strategies are explained a little?
>   
[cut]

I do it like this:
# Before changes to models.py
./manage.py sqlall myapp > orig.sql
# Modify models.py
./manage.py sqlall myapp > new.sql

diff orig.sql new.sql

Now you need to now a little SQL to write the correct "ALTER TABLE ..." 
statements.
But must of the time it is not that difficult.

HTH,
  Thomas

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to