Created
December 28, 2009 21:29
-
-
Save relrod/264955 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[/home/ricky/dev/eighthbit] -> ./manage.py sqlall wiki | |
BEGIN; | |
CREATE TABLE "wiki_page" ( | |
"id" integer NOT NULL PRIMARY KEY, | |
"title" varchar(200) NOT NULL, | |
"revision_id" integer NOT NULL | |
) | |
; | |
CREATE TABLE "wiki_revision" ( | |
"id" integer NOT NULL PRIMARY KEY, | |
"contents" text NOT NULL, | |
"username_id" integer NOT NULL REFERENCES "auth_user" ("id"), | |
"page_id" integer NOT NULL UNIQUE REFERENCES "wiki_page" ("id") | |
) | |
; | |
CREATE INDEX "wiki_page_revision_id" ON "wiki_page" ("revision_id"); | |
CREATE INDEX "wiki_revision_username_id" ON "wiki_revision" ("username_id"); | |
COMMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment