Hi,

has some one a script to show the difference between the
running database and one which get created by syncdb?

Up to now, I used the output of sqlall before and after
a model change. But it would be better to do the
diff of the running database.

Up to now I do it like this:

pg_dump -s databasename > running.schema
./manage.py test myapp # Hit ctrl-c after test database was created.
pg_dump -s test_databasename > test.schema
diff test.schema running.schema

Maybe something like this be implemented as new management command ...

Any volunteers? Since pg_dump is only available for postgres, you
would need something like for other DBs, too.

 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