On 1/11/06, Elvelind Grandin <[EMAIL PROTECTED]> wrote: > > On 1/11/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > > > > On 1/11/06, Cliff Wells <[EMAIL PROTECTED]> wrote: > > > model.py: > > > > > > class DocType ( SQLObject ): > > > ... > > > > > > class DocColumn ( SQLObject ): > > > docType = ForeignKey ( 'DocType' ) > > > ... > > > > > > class Pdf ( SQLObject ): > > > pdf = ForeignKey ( 'Pdf' ) > > > docType = ForeignKey ( 'DocType' ) > > > ... > > > > > > > > > Unfortunately 'tg-admin sql create' tries to create DocColumn first > > > which of course fails because DocType doesn't yet exist. > > > > > > Anyone else seeing this? > > > > Hmm... that seems fishy. You would think this would be a widespread problem. > > from what I know it is a widespread problem.
Oh :( Is this the problem that is fixed in SQLObject trunk where the foreign key constraints are added after all of the tables created (I believe I saw that come through a month ago)? Kevin

