Ticket #933: sql_poll.diff

File sql_poll.diff, 803 bytes (added by jhernandez, 19 years ago)

patch to tutorial01.txt

Line 
1228a229
2> COMMIT;
3230,233c231,234
4< CREATE TABLE polls_polls (
5< id serial NOT NULL PRIMARY KEY,
6< question varchar(200) NOT NULL,
7< pub_date timestamp with time zone NOT NULL
8---
9> CREATE TABLE "polls_polls" (
10> "id" serial NOT NULL PRIMARY KEY,
11> "question" varchar(200) NOT NULL,
12> "pub_date" timestamp with time zone NOT NULL
13235,239c236,240
14< CREATE TABLE polls_choices (
15< id serial NOT NULL PRIMARY KEY,
16< poll_id integer NOT NULL REFERENCES polls_polls (id),
17< choice varchar(200) NOT NULL,
18< votes integer NOT NULL
19---
20> CREATE TABLE "polls_choices" (
21> "id" serial NOT NULL PRIMARY KEY,
22> "poll_id" integer NOT NULL REFERENCES "polls_polls" ("id"),
23> "choice" varchar(200) NOT NULL,
24> "votes" integer NOT NULL
Back to Top