#2260: Model tables get created in the wrong order
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Database wrapper | Version:
Severity: normal | Resolution: fixed
Keywords: |
--------------------------------+-------------------------------------------
Changes (by mattmcc):
* resolution: => fixed
* status: new => closed
Comment:
This appears to be fixed.
Using rev 3519, postgres, and the models in the ticket description,
manage.py sql scratch yields:
{{{
BEGIN;
CREATE TABLE "scratch_auctiondetails" (
"id" serial NOT NULL PRIMARY KEY,
"element_id" integer NOT NULL,
"name" varchar(500) NOT NULL
);
CREATE TABLE "scratch_auctionelement" (
"id" serial NOT NULL PRIMARY KEY,
"name" varchar(500) NOT NULL
);
ALTER TABLE "scratch_auctiondetails" ADD CONSTRAINT
element_id_refs_id_75764088 FOREIGN KEY ("element_id") REFERENCES
"scratch_auctionelement" ("id");
COMMIT;
}}}
If it's still an issue, which database are you using?
--
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
-~----------~----~----~----~------~----~------~--~---