X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d419a5d6c844d841d10a46437ab5fff236dfc0b0..b17517e02cc9580b89a220d926292166aed25b9b:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index f9e588b3c..57209fb9f 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -9,6 +9,13 @@ SET xmloption = content; SET client_min_messages = warning; SET row_security = off; +-- +-- Name: public; Type: SCHEMA; Schema: -; Owner: - +-- + +-- *not* creating schema, since initdb creates it + + -- -- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: - -- @@ -1482,7 +1489,6 @@ CREATE TABLE public.users ( pass_salt character varying, email_valid boolean DEFAULT false NOT NULL, new_email character varying, - creation_ip character varying, languages character varying, status public.user_status_enum DEFAULT 'pending'::public.user_status_enum NOT NULL, terms_agreed timestamp without time zone, @@ -1499,7 +1505,8 @@ CREATE TABLE public.users ( home_tile bigint, tou_agreed timestamp without time zone, diary_comments_count integer DEFAULT 0, - note_comments_count integer DEFAULT 0 + note_comments_count integer DEFAULT 0, + creation_address inet ); @@ -2603,6 +2610,13 @@ CREATE INDEX index_user_blocks_on_user_id ON public.user_blocks USING btree (use CREATE UNIQUE INDEX index_user_mutes_on_owner_id_and_subject_id ON public.user_mutes USING btree (owner_id, subject_id); +-- +-- Name: index_users_on_creation_address; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_creation_address ON public.users USING gist (creation_address inet_ops); + + -- -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: - -- @@ -3349,6 +3363,9 @@ INSERT INTO "schema_migrations" (version) VALUES ('23'), ('22'), ('21'), +('20240913171951'), +('20240912181413'), +('20240910175616'), ('20240822121603'), ('20240813070506'), ('20240724194738'),