Bugs item #1387369, was opened at 2005-12-21 10:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1387369&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Postgres
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: tables not created in correct order
Initial Comment:
When I have this code:
class ClassB(SQLObject):
...
var1=StringCol()
...
class ClassA(SQLObject):
...
var2=ForeignKey('ClassB')
...
I get an error that relation 'classb' does not exist.
So when I execute tg-admin sql create it tries to
create the ClassA table first, not checking for the
dependencies and create ClassB first.
When I created the ClassB table manually (via tg-admin
shell), it went all ok.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1387369&group_id=74338
|