Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #933 -- Updated 'django-admin.py sql polls' output in tutorial0…

…1. Thanks, jhernandez

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1bd85787ecacc587073d64bb7a922e0aad7a604e 1 parent 7ff2c87
Adrian Holovaty authored November 27, 2005

Showing 1 changed file with 13 additions and 12 deletions. Show diff stats Hide diff stats

  1. 25  docs/tutorial01.txt
25  docs/tutorial01.txt
@@ -227,16 +227,16 @@ Now Django knows myproject includes the polls app. Let's run another command::
227 227
 You should see the following (the CREATE TABLE SQL statements for the polls app)::
228 228
 
229 229
     BEGIN;
230  
-    CREATE TABLE polls_polls (
231  
-        id serial NOT NULL PRIMARY KEY,
232  
-        question varchar(200) NOT NULL,
233  
-        pub_date timestamp with time zone NOT NULL
  230
+    CREATE TABLE "polls_polls" (
  231
+        "id" serial NOT NULL PRIMARY KEY,
  232
+        "question" varchar(200) NOT NULL,
  233
+        "pub_date" timestamp with time zone NOT NULL
234 234
     );
235  
-    CREATE TABLE polls_choices (
236  
-        id serial NOT NULL PRIMARY KEY,
237  
-        poll_id integer NOT NULL REFERENCES polls_polls (id),
238  
-        choice varchar(200) NOT NULL,
239  
-        votes integer NOT NULL
  235
+    CREATE TABLE "polls_choices" (
  236
+        "id" serial NOT NULL PRIMARY KEY,
  237
+        "poll_id" integer NOT NULL REFERENCES "polls_polls" ("id"),
  238
+        "choice" varchar(200) NOT NULL,
  239
+        "votes" integer NOT NULL
240 240
     );
241 241
     COMMIT;
242 242
 
@@ -255,9 +255,10 @@ Note the following:
255 255
 
256 256
     * It's tailored to the database you're using, so database-specific field types
257 257
       such as ``auto_increment`` (MySQL), ``serial`` (PostgreSQL), or ``integer
258  
-      primary key`` (SQLite) are handled for you automatically. The author of
259  
-      this tutorial runs PostgreSQL, so the example output is in PostgreSQL
260  
-      syntax.
  258
+      primary key`` (SQLite) are handled for you automatically. Same goes for
  259
+      quoting of field names -- e.g., using double quotes or single quotes. The
  260
+      author of this tutorial runs PostgreSQL, so the example output is in
  261
+      PostgreSQL syntax.
261 262
 
262 263
 If you're interested, also run the following commands:
263 264
 

0 notes on commit 1bd8578

Please sign in to comment.
Something went wrong with that request. Please try again.