Hi there,

It will work on backends that allow you to create a foreign key
constraint pointing to a table that does not exist yet (don't know if
any actually allow that ^^; ), or on backends that simply do not
enforce foreign key constraints.

Last time I checked (but that's a while back), MyISAM type tables did
not support foreign key constraints. If that didn't change, then I
guess the table creation should work in your case. Did you get some
other error message after that warning? If not, then chances are the
tables were created correctly.

But for example, if you use MySQL with InnoDB tables or PostgreSQL,
you would probably get an error.

Cheers,

--
Yves-Eric


[EMAIL PROTECTED] wrote:
> I have a circular reference in my database model (on purpose---but
> perhaps that's just because I don't understand the implications).
>
> When I run "tg-admin sql create" I get
> .
> .
> .
> Warning: a circular reference was detected in the model. Unable to
> sort the classes by dependency: they will be treated in alphabetic
> order. This may or may not work depending on your database backend.
> The error was:
> Found a circular reference: Categories --> Group --> Permission -->
> (snipped...) --> User --> Visit --> VisitIdentity --> WikiData -->
> WikiPage --> WikiData
>
>
> So it says this may or may not work depending on my database backend.
> Which backends does it work on?  Which backends does it not work on?
>
> I'm using mysql (with myisam tables, for now at least).
>
> Thanks!


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

Reply via email to