X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/822759075cf43cfc99262186830aa329f4034667..577b5d5bb8d628c3c5444b7d7e47dceb7acecb4e:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index d9b0b1ff3..339533b92 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,11 @@ 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, + diary_entries_count integer DEFAULT 0 NOT NULL, + image_use_gravatar boolean DEFAULT true NOT NULL ); @@ -2071,6 +2077,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 +2265,14 @@ 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 ('20121005195010'); + +INSERT INTO schema_migrations (version) VALUES ('20121012044047'); + INSERT INTO schema_migrations (version) VALUES ('21'); INSERT INTO schema_migrations (version) VALUES ('22');