From 54dee52dc7737666745ec3599cc0eb50f698bebc Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 5 Oct 2007 07:50:51 +0000 Subject: [PATCH] Reordering some columns and adding some indices. --- model/schema.sql | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/model/schema.sql b/model/schema.sql index e405bfc..3db16b6 100644 --- a/model/schema.sql +++ b/model/schema.sql @@ -6,21 +6,6 @@ SET client_encoding = 'UTF8'; SET check_function_bodies = false; SET client_min_messages = warning; --- --- Name: luminotes; Type: DATABASE; Schema: -; Owner: luminotes --- - -CREATE DATABASE luminotes WITH TEMPLATE = template0 ENCODING = 'UTF8'; - - -ALTER DATABASE luminotes OWNER TO luminotes; - -\connect luminotes - -SET client_encoding = 'UTF8'; -SET check_function_bodies = false; -SET client_min_messages = warning; - -- -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres -- @@ -119,9 +104,9 @@ ALTER TABLE public.notebook_current OWNER TO luminotes; -- CREATE TABLE password_reset ( + id text NOT NULL, email_address text NOT NULL, - redeemed boolean, - id text NOT NULL + redeemed boolean ); @@ -180,6 +165,20 @@ ALTER TABLE ONLY user_notebook ADD CONSTRAINT user_notebook_pkey PRIMARY KEY (user_id, notebook_id); +-- +-- Name: luminotes_user_email_address_index; Type: INDEX; Schema: public; Owner: luminotes; Tablespace: +-- + +CREATE INDEX luminotes_user_email_address_index ON luminotes_user USING btree (email_address); + + +-- +-- Name: luminotes_user_username_index; Type: INDEX; Schema: public; Owner: luminotes; Tablespace: +-- + +CREATE INDEX luminotes_user_username_index ON luminotes_user USING btree (username); + + -- -- Name: note_notebook_id_startup_index; Type: INDEX; Schema: public; Owner: luminotes; Tablespace: --