All pastes #19264 Raw Edit

Something

public text v1 · immutable
#19264 ·published 2005-08-04 03:51 UTC
rendered paste body
django-admin.py sql polls
BEGIN;
CREATE TABLE polls_polls (
    id mediumint(9) unsigned auto_increment NOT NULL PRIMARY KEY,
    question varchar(200) NOT NULL,
    pub_date datetime NOT NULL
);
CREATE TABLE polls_choices (
    id mediumint(9) unsigned auto_increment NOT NULL PRIMARY KEY,
    poll_id integer NOT NULL REFERENCES polls_polls (id),
    choice varchar(200) NOT NULL,
    votes integer NOT NULL
);
COMMIT;