1 | 230,233c230,233
|
---|
2 | < CREATE TABLE polls_polls (
|
---|
3 | < id serial NOT NULL PRIMARY KEY,
|
---|
4 | < question varchar(200) NOT NULL,
|
---|
5 | < pub_date timestamp with time zone NOT NULL
|
---|
6 | ---
|
---|
7 | > CREATE TABLE "polls_polls" (
|
---|
8 | > "id" serial NOT NULL PRIMARY KEY,
|
---|
9 | > "question" varchar(200) NOT NULL,
|
---|
10 | > "pub_date" timestamp with time zone NOT NULL
|
---|
11 | 235,239c235,239
|
---|
12 | < CREATE TABLE polls_choices (
|
---|
13 | < id serial NOT NULL PRIMARY KEY,
|
---|
14 | < poll_id integer NOT NULL REFERENCES polls_polls (id),
|
---|
15 | < choice varchar(200) NOT NULL,
|
---|
16 | < votes integer NOT NULL
|
---|
17 | ---
|
---|
18 | > CREATE TABLE "polls_choices" (
|
---|
19 | > "id" serial NOT NULL PRIMARY KEY,
|
---|
20 | > "poll_id" integer NOT NULL REFERENCES "polls_polls" ("id"),
|
---|
21 | > "choice" varchar(200) NOT NULL,
|
---|
22 | > "votes" integer NOT NULL
|
---|