Created
June 1, 2013 19:37
-
-
Save Benjmin/5691494 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Table: pages | |
-- DROP TABLE pages; | |
CREATE TABLE pages | |
( | |
id serial NOT NULL, | |
title character varying(255), | |
link character varying(255), | |
summary text, | |
book_id integer, | |
created_at timestamp without time zone NOT NULL, | |
updated_at timestamp without time zone NOT NULL, | |
CONSTRAINT pages_pkey PRIMARY KEY (id) | |
) | |
WITH ( | |
OIDS=FALSE | |
); | |
ALTER TABLE pages | |
OWNER TO dogears; | |
-- Index: index_pages_on_book_id | |
-- DROP INDEX index_pages_on_book_id; | |
CREATE INDEX index_pages_on_book_id | |
ON pages | |
USING btree | |
(book_id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment