X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e96f1e736a462bdf1ce1304ed870fe57ff0e4caf..27c3edae25e2ee2a3ef0ee0a354447694eef93c6:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index 5e9b74195..020d5fb16 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2,8 +2,8 @@ -- PostgreSQL database dump -- --- Dumped from database version 9.5.3 --- Dumped by pg_dump version 9.5.3 +-- Dumped from database version 9.5.6 +-- Dumped by pg_dump version 9.5.6 SET statement_timeout = 0; SET lock_timeout = 0; @@ -549,6 +549,8 @@ CREATE SEQUENCE diary_entries_id_seq ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id; + +-- -- Name: diary_entry_subscriptions; Type: TABLE; Schema: public; Owner: - -- @@ -1844,11 +1846,20 @@ CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_ CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key); +-- +-- Name: index_client_applications_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_client_applications_on_user_id ON client_applications USING btree (user_id); + + +-- -- Name: index_diary_entry_subscriptions_on_diary_entry_id; Type: INDEX; Schema: public; Owner: - -- CREATE INDEX index_diary_entry_subscriptions_on_diary_entry_id ON diary_entry_subscriptions USING btree (diary_entry_id); + -- -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: - -- @@ -1877,6 +1888,13 @@ CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces US CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token); +-- +-- Name: index_oauth_tokens_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_tokens_on_user_id ON oauth_tokens USING btree (user_id); + + -- -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: - -- @@ -2233,8 +2251,8 @@ ALTER TABLE ONLY diary_entries ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id); --- Name: diary_entry_subscriptions_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- +-- Name: diary_entry_subscriptions_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY diary_entry_subscriptions @@ -2571,8 +2589,6 @@ INSERT INTO schema_migrations (version) VALUES ('20121203124841'); INSERT INTO schema_migrations (version) VALUES ('20130328184137'); -INSERT INTO schema_migrations (version) VALUES ('20131029121300'); - INSERT INTO schema_migrations (version) VALUES ('20131212124700'); INSERT INTO schema_migrations (version) VALUES ('20140115192822'); @@ -2593,6 +2609,12 @@ INSERT INTO schema_migrations (version) VALUES ('20150222101847'); INSERT INTO schema_migrations (version) VALUES ('20150818224516'); +INSERT INTO schema_migrations (version) VALUES ('20161002153425'); + +INSERT INTO schema_migrations (version) VALUES ('20161011010929'); + +INSERT INTO schema_migrations (version) VALUES ('20170222134109'); + INSERT INTO schema_migrations (version) VALUES ('21'); INSERT INTO schema_migrations (version) VALUES ('22'); @@ -2680,3 +2702,4 @@ INSERT INTO schema_migrations (version) VALUES ('7'); INSERT INTO schema_migrations (version) VALUES ('8'); INSERT INTO schema_migrations (version) VALUES ('9'); +