summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-09-17 10:05:45 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-09-17 10:05:45 +0200
commit5abc43cabfa80d4c95d00edff5a948cf3d6e61d5 (patch)
tree6c8479230a7750136dc7a98d1627188d8f9cea4b
parent9d12f68a53477a90bb4ad8eb223b04c09bcca11e (diff)
Updated examples in the docs after eade315d.
-rw-r--r--docs/intro/tutorial01.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index 19ecc5ebee..f84393e9d7 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -433,12 +433,12 @@ statements for the polls app):
BEGIN;
CREATE TABLE "polls_question" (
- "id" integer NOT NULL PRIMARY KEY,
+ "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"question_text" varchar(200) NOT NULL,
"pub_date" datetime NOT NULL
);
CREATE TABLE "polls_choice" (
- "id" integer NOT NULL PRIMARY KEY,
+ "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"question_id" integer NOT NULL REFERENCES "polls_poll" ("id"),
"choice_text" varchar(200) NOT NULL,
"votes" integer NOT NULL
@@ -462,9 +462,9 @@ Note the following:
* The foreign key relationship is made explicit by a ``REFERENCES``
statement.
-* It's tailored to the database you're using, so database-specific field
- types such as ``auto_increment`` (MySQL), ``serial`` (PostgreSQL), or
- ``integer primary key`` (SQLite) are handled for you automatically. Same
+* It's tailored to the database you're using, so database-specific field types
+ such as ``auto_increment`` (MySQL), ``serial`` (PostgreSQL), or ``integer
+ primary key autoincrement`` (SQLite) are handled for you automatically. Same
goes for quoting of field names -- e.g., using double quotes or single
quotes.