On Wed, 2008-04-23 at 17:18 +0200, Thomas Guettler wrote:
> Malcolm Tredinnick schrieb:
> > On Wed, 2008-04-23 at 15:37 +0200, Thomas Guettler wrote:
> >   
> >> Hi,
> >>
> >> has some one a script to show the difference between the
> >> running database and one which get created by syncdb?
> >>
> >>
> >>     
> > This sounds like it would be really difficult (complex) to make it work
> > correctly. The output from a database tool is going to include stuff
> > that you don't necessarily care about (e.g. constraints that are
> > auto-created with names in some cases), the table ordering may well be
> > different....,
> The ordering of the columns is why I needed the diff in my case!

No, I said the ordering of the tables, not the ordering of the columns.
The order that Django creates the tables isn't necessarily going to be
the order they are output by pg_dump. Also, if you add a new table to a
database, is it possible the order of the tables as output by pg_dump
will change?

What I'm trying to get at here is that I think that a general solution
needs to be much more aware of things than just the output. It needs to
actually understand the output and known how to relate like things to
like. For all the database backends it supports, and that's why it's
harder than it looks.

Regards,
Malcolm

-- 
I intend to live forever - so far so good. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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