#2260: Model tables get created in the wrong order
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian  
     Type:  defect              |       Status:  reopened
 Priority:  normal              |    Milestone:          
Component:  Database wrapper    |      Version:  SVN     
 Severity:  normal              |   Resolution:          
 Keywords:                      |  
--------------------------------+-------------------------------------------
Changes (by [EMAIL PROTECTED]):

  * resolution:  fixed =>
  * status:  closed => reopened
  * version:  => SVN

Comment:

 The problem apprears when you call sql or sqlreset on a database that
 already contains those tables.  This is usually the case with
 sqlreset.
 
 Django declares foreign keys outside of CREATE TABLE only if the other
 table does not exist in the database yet.  If you call sql or sqlreset
 with an already populated database then it is very likely that the
 table does exist at the moment Django checks for it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2260>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to