X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b68b29b43c2e385af05d81815e347c2ab22ed269..81b6599830e04cc45d7b847b7626015b76febf9f:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index 5919574f4..3ee7b9ac6 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -712,7 +712,8 @@ CREATE TABLE issues ( resolved_by integer, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, - updated_by integer + updated_by integer, + report_count integer DEFAULT 0 ); @@ -2006,6 +2007,13 @@ CREATE INDEX index_issues_on_reportable_id_and_reportable_type ON issues USING b CREATE INDEX index_issues_on_reported_user_id ON issues USING btree (reported_user_id); +-- +-- Name: index_issues_on_updated_by; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE INDEX index_issues_on_updated_by ON issues USING btree (updated_by); + + -- -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: - -- @@ -2468,6 +2476,14 @@ ALTER TABLE ONLY issues ADD CONSTRAINT issues_reported_user_id_fkey FOREIGN KEY (reported_user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: issues_updated_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY issues + ADD CONSTRAINT issues_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE CASCADE; + + -- -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -2790,6 +2806,8 @@ INSERT INTO schema_migrations (version) VALUES ('20150516073616'); INSERT INTO schema_migrations (version) VALUES ('20150526130032'); +INSERT INTO schema_migrations (version) VALUES ('20150719160821'); + INSERT INTO schema_migrations (version) VALUES ('21'); INSERT INTO schema_migrations (version) VALUES ('22');