Skip to content

Commit

Permalink
Restore actual production DB structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Feb 21, 2016
1 parent 63859fc commit 7a57c7a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ ALTER SEQUENCE constituency_petition_journals_id_seq OWNED BY constituency_petit
CREATE TABLE country_petition_journals (
id integer NOT NULL,
petition_id integer NOT NULL,
country character varying,
signature_count integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
Expand Down Expand Up @@ -630,6 +631,7 @@ CREATE TABLE signatures (
state character varying(10) DEFAULT 'pending'::character varying NOT NULL,
perishable_token character varying(255),
postcode character varying(255),
country character varying(255),
ip_address character varying(20),
petition_id integer,
created_at timestamp without time zone,
Expand Down Expand Up @@ -1098,6 +1100,13 @@ CREATE UNIQUE INDEX index_constituencies_on_slug ON constituencies USING btree (
CREATE UNIQUE INDEX index_country_petition_journals_on_petition_and_location ON country_petition_journals USING btree (petition_id, location_code);


--
-- Name: index_country_petition_journals_on_petition_id_and_country; Type: INDEX; Schema: public; Owner: -; Tablespace:
--

CREATE UNIQUE INDEX index_country_petition_journals_on_petition_id_and_country ON country_petition_journals USING btree (petition_id, country);


--
-- Name: index_debate_outcomes_on_petition_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
Expand Down

0 comments on commit 7a57c7a

Please sign in to comment.