X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/822759075cf43cfc99262186830aa329f4034667..93c392cf5f7155a243cc6ebcab622be44dadc9ad:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index d9b0b1ff3..5f71a9fb4 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -788,7 +788,9 @@ CREATE TABLE redactions ( title character varying(255), description text, created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL + updated_at timestamp without time zone NOT NULL, + user_id bigint NOT NULL, + description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL ); @@ -1002,7 +1004,9 @@ CREATE TABLE users ( terms_seen boolean DEFAULT false NOT NULL, openid_url character varying(255), description_format format_enum DEFAULT 'html'::format_enum NOT NULL, - image_fingerprint character varying(255) + image_fingerprint character varying(255), + changesets_count integer DEFAULT 0 NOT NULL, + traces_count integer DEFAULT 0 NOT NULL ); @@ -2071,6 +2075,14 @@ ALTER TABLE ONLY oauth_tokens ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id); +-- +-- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY redactions + ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id); + + -- -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2251,6 +2263,10 @@ INSERT INTO schema_migrations (version) VALUES ('20120318201948'); INSERT INTO schema_migrations (version) VALUES ('20120328090602'); +INSERT INTO schema_migrations (version) VALUES ('20120404205604'); + +INSERT INTO schema_migrations (version) VALUES ('20120808231205'); + INSERT INTO schema_migrations (version) VALUES ('21'); INSERT INTO schema_migrations (version) VALUES ('22');