2 -- PostgreSQL database dump
5 -- Dumped from database version 9.5.6
6 -- Dumped by pg_dump version 9.5.6
8 SET statement_timeout = 0;
10 SET client_encoding = 'UTF8';
11 SET standard_conforming_strings = on;
12 SET check_function_bodies = false;
13 SET client_min_messages = warning;
14 SET row_security = off;
17 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
20 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
24 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
27 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
31 -- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
34 CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public;
38 -- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: -
41 COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST';
44 SET search_path = public, pg_catalog;
47 -- Name: format_enum; Type: TYPE; Schema: public; Owner: -
50 CREATE TYPE format_enum AS ENUM (
58 -- Name: gpx_visibility_enum; Type: TYPE; Schema: public; Owner: -
61 CREATE TYPE gpx_visibility_enum AS ENUM (
70 -- Name: note_event_enum; Type: TYPE; Schema: public; Owner: -
73 CREATE TYPE note_event_enum AS ENUM (
83 -- Name: note_status_enum; Type: TYPE; Schema: public; Owner: -
86 CREATE TYPE note_status_enum AS ENUM (
94 -- Name: nwr_enum; Type: TYPE; Schema: public; Owner: -
97 CREATE TYPE nwr_enum AS ENUM (
105 -- Name: user_role_enum; Type: TYPE; Schema: public; Owner: -
108 CREATE TYPE user_role_enum AS ENUM (
115 -- Name: user_status_enum; Type: TYPE; Schema: public; Owner: -
118 CREATE TYPE user_status_enum AS ENUM (
128 -- Name: maptile_for_point(bigint, bigint, integer); Type: FUNCTION; Schema: public; Owner: -
131 CREATE FUNCTION maptile_for_point(bigint, bigint, integer) RETURNS integer
133 AS '$libdir/libpgosm', 'maptile_for_point';
137 -- Name: tile_for_point(integer, integer); Type: FUNCTION; Schema: public; Owner: -
140 CREATE FUNCTION tile_for_point(integer, integer) RETURNS bigint
142 AS '$libdir/libpgosm', 'tile_for_point';
146 -- Name: xid_to_int4(xid); Type: FUNCTION; Schema: public; Owner: -
149 CREATE FUNCTION xid_to_int4(xid) RETURNS integer
150 LANGUAGE c IMMUTABLE STRICT
151 AS '$libdir/libpgosm', 'xid_to_int4';
154 SET default_tablespace = '';
156 SET default_with_oids = false;
159 -- Name: acls; Type: TABLE; Schema: public; Owner: -
165 k character varying(255) NOT NULL,
166 v character varying(255),
167 domain character varying(255)
172 -- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
175 CREATE SEQUENCE acls_id_seq
184 -- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
187 ALTER SEQUENCE acls_id_seq OWNED BY acls.id;
191 -- Name: changeset_comments; Type: TABLE; Schema: public; Owner: -
194 CREATE TABLE changeset_comments (
196 changeset_id bigint NOT NULL,
197 author_id bigint NOT NULL,
199 created_at timestamp without time zone NOT NULL,
200 visible boolean NOT NULL
205 -- Name: changeset_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
208 CREATE SEQUENCE changeset_comments_id_seq
217 -- Name: changeset_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
220 ALTER SEQUENCE changeset_comments_id_seq OWNED BY changeset_comments.id;
224 -- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -
227 CREATE TABLE changeset_tags (
228 changeset_id bigint NOT NULL,
229 k character varying(255) DEFAULT ''::character varying NOT NULL,
230 v character varying(255) DEFAULT ''::character varying NOT NULL
235 -- Name: changesets; Type: TABLE; Schema: public; Owner: -
238 CREATE TABLE changesets (
240 user_id bigint NOT NULL,
241 created_at timestamp without time zone NOT NULL,
246 closed_at timestamp without time zone NOT NULL,
247 num_changes integer DEFAULT 0 NOT NULL
252 -- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
255 CREATE SEQUENCE changesets_id_seq
264 -- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
267 ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
271 -- Name: changesets_subscribers; Type: TABLE; Schema: public; Owner: -
274 CREATE TABLE changesets_subscribers (
275 subscriber_id bigint NOT NULL,
276 changeset_id bigint NOT NULL
281 -- Name: client_applications; Type: TABLE; Schema: public; Owner: -
284 CREATE TABLE client_applications (
286 name character varying(255),
287 url character varying(255),
288 support_url character varying(255),
289 callback_url character varying(255),
290 key character varying(50),
291 secret character varying(50),
293 created_at timestamp without time zone,
294 updated_at timestamp without time zone,
295 allow_read_prefs boolean DEFAULT false NOT NULL,
296 allow_write_prefs boolean DEFAULT false NOT NULL,
297 allow_write_diary boolean DEFAULT false NOT NULL,
298 allow_write_api boolean DEFAULT false NOT NULL,
299 allow_read_gpx boolean DEFAULT false NOT NULL,
300 allow_write_gpx boolean DEFAULT false NOT NULL,
301 allow_write_notes boolean DEFAULT false NOT NULL
306 -- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
309 CREATE SEQUENCE client_applications_id_seq
318 -- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
321 ALTER SEQUENCE client_applications_id_seq OWNED BY client_applications.id;
325 -- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -
328 CREATE TABLE current_node_tags (
329 node_id bigint NOT NULL,
330 k character varying(255) DEFAULT ''::character varying NOT NULL,
331 v character varying(255) DEFAULT ''::character varying NOT NULL
336 -- Name: current_nodes; Type: TABLE; Schema: public; Owner: -
339 CREATE TABLE current_nodes (
341 latitude integer NOT NULL,
342 longitude integer NOT NULL,
343 changeset_id bigint NOT NULL,
344 visible boolean NOT NULL,
345 "timestamp" timestamp without time zone NOT NULL,
346 tile bigint NOT NULL,
347 version bigint NOT NULL
352 -- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
355 CREATE SEQUENCE current_nodes_id_seq
364 -- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
367 ALTER SEQUENCE current_nodes_id_seq OWNED BY current_nodes.id;
371 -- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -
374 CREATE TABLE current_relation_members (
375 relation_id bigint NOT NULL,
376 member_type nwr_enum NOT NULL,
377 member_id bigint NOT NULL,
378 member_role character varying(255) NOT NULL,
379 sequence_id integer DEFAULT 0 NOT NULL
384 -- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -
387 CREATE TABLE current_relation_tags (
388 relation_id bigint NOT NULL,
389 k character varying(255) DEFAULT ''::character varying NOT NULL,
390 v character varying(255) DEFAULT ''::character varying NOT NULL
395 -- Name: current_relations; Type: TABLE; Schema: public; Owner: -
398 CREATE TABLE current_relations (
400 changeset_id bigint NOT NULL,
401 "timestamp" timestamp without time zone NOT NULL,
402 visible boolean NOT NULL,
403 version bigint NOT NULL
408 -- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
411 CREATE SEQUENCE current_relations_id_seq
420 -- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
423 ALTER SEQUENCE current_relations_id_seq OWNED BY current_relations.id;
427 -- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -
430 CREATE TABLE current_way_nodes (
431 way_id bigint NOT NULL,
432 node_id bigint NOT NULL,
433 sequence_id bigint NOT NULL
438 -- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -
441 CREATE TABLE current_way_tags (
442 way_id bigint NOT NULL,
443 k character varying(255) DEFAULT ''::character varying NOT NULL,
444 v character varying(255) DEFAULT ''::character varying NOT NULL
449 -- Name: current_ways; Type: TABLE; Schema: public; Owner: -
452 CREATE TABLE current_ways (
454 changeset_id bigint NOT NULL,
455 "timestamp" timestamp without time zone NOT NULL,
456 visible boolean NOT NULL,
457 version bigint NOT NULL
462 -- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
465 CREATE SEQUENCE current_ways_id_seq
474 -- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
477 ALTER SEQUENCE current_ways_id_seq OWNED BY current_ways.id;
481 -- Name: diary_comments; Type: TABLE; Schema: public; Owner: -
484 CREATE TABLE diary_comments (
486 diary_entry_id bigint NOT NULL,
487 user_id bigint NOT NULL,
489 created_at timestamp without time zone NOT NULL,
490 updated_at timestamp without time zone NOT NULL,
491 visible boolean DEFAULT true NOT NULL,
492 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
497 -- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
500 CREATE SEQUENCE diary_comments_id_seq
509 -- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
512 ALTER SEQUENCE diary_comments_id_seq OWNED BY diary_comments.id;
516 -- Name: diary_entries; Type: TABLE; Schema: public; Owner: -
519 CREATE TABLE diary_entries (
521 user_id bigint NOT NULL,
522 title character varying(255) NOT NULL,
524 created_at timestamp without time zone NOT NULL,
525 updated_at timestamp without time zone NOT NULL,
526 latitude double precision,
527 longitude double precision,
528 language_code character varying(255) DEFAULT 'en'::character varying NOT NULL,
529 visible boolean DEFAULT true NOT NULL,
530 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
535 -- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
538 CREATE SEQUENCE diary_entries_id_seq
547 -- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
550 ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id;
554 -- Name: diary_entry_subscriptions; Type: TABLE; Schema: public; Owner: -
557 CREATE TABLE diary_entry_subscriptions (
558 user_id bigint NOT NULL,
559 diary_entry_id bigint NOT NULL
564 -- Name: friends; Type: TABLE; Schema: public; Owner: -
567 CREATE TABLE friends (
569 user_id bigint NOT NULL,
570 friend_user_id bigint NOT NULL
575 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
578 CREATE SEQUENCE friends_id_seq
587 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
590 ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
594 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -
597 CREATE TABLE gps_points (
598 altitude double precision,
599 trackid integer NOT NULL,
600 latitude integer NOT NULL,
601 longitude integer NOT NULL,
602 gpx_id bigint NOT NULL,
603 "timestamp" timestamp without time zone,
609 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -
612 CREATE TABLE gpx_file_tags (
613 gpx_id bigint DEFAULT 0 NOT NULL,
614 tag character varying(255) NOT NULL,
620 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
623 CREATE SEQUENCE gpx_file_tags_id_seq
632 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
635 ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
639 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -
642 CREATE TABLE gpx_files (
644 user_id bigint NOT NULL,
645 visible boolean DEFAULT true NOT NULL,
646 name character varying(255) DEFAULT ''::character varying NOT NULL,
648 latitude double precision,
649 longitude double precision,
650 "timestamp" timestamp without time zone NOT NULL,
651 description character varying(255) DEFAULT ''::character varying NOT NULL,
652 inserted boolean NOT NULL,
653 visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
658 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
661 CREATE SEQUENCE gpx_files_id_seq
670 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
673 ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
677 -- Name: languages; Type: TABLE; Schema: public; Owner: -
680 CREATE TABLE languages (
681 code character varying(255) NOT NULL,
682 english_name character varying(255) NOT NULL,
683 native_name character varying(255)
688 -- Name: messages; Type: TABLE; Schema: public; Owner: -
691 CREATE TABLE messages (
693 from_user_id bigint NOT NULL,
694 title character varying(255) NOT NULL,
696 sent_on timestamp without time zone NOT NULL,
697 message_read boolean DEFAULT false NOT NULL,
698 to_user_id bigint NOT NULL,
699 to_user_visible boolean DEFAULT true NOT NULL,
700 from_user_visible boolean DEFAULT true NOT NULL,
701 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
706 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
709 CREATE SEQUENCE messages_id_seq
718 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
721 ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
725 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -
728 CREATE TABLE node_tags (
729 node_id bigint NOT NULL,
730 version bigint NOT NULL,
731 k character varying(255) DEFAULT ''::character varying NOT NULL,
732 v character varying(255) DEFAULT ''::character varying NOT NULL
737 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
741 node_id bigint NOT NULL,
742 latitude integer NOT NULL,
743 longitude integer NOT NULL,
744 changeset_id bigint NOT NULL,
745 visible boolean NOT NULL,
746 "timestamp" timestamp without time zone NOT NULL,
747 tile bigint NOT NULL,
748 version bigint NOT NULL,
754 -- Name: note_comments; Type: TABLE; Schema: public; Owner: -
757 CREATE TABLE note_comments (
759 note_id bigint NOT NULL,
760 visible boolean NOT NULL,
761 created_at timestamp without time zone NOT NULL,
765 event note_event_enum
770 -- Name: note_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
773 CREATE SEQUENCE note_comments_id_seq
782 -- Name: note_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
785 ALTER SEQUENCE note_comments_id_seq OWNED BY note_comments.id;
789 -- Name: notes; Type: TABLE; Schema: public; Owner: -
794 latitude integer NOT NULL,
795 longitude integer NOT NULL,
796 tile bigint NOT NULL,
797 updated_at timestamp without time zone NOT NULL,
798 created_at timestamp without time zone NOT NULL,
799 status note_status_enum NOT NULL,
800 closed_at timestamp without time zone
805 -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
808 CREATE SEQUENCE notes_id_seq
817 -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
820 ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
824 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -
827 CREATE TABLE oauth_nonces (
829 nonce character varying(255),
831 created_at timestamp without time zone,
832 updated_at timestamp without time zone
837 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
840 CREATE SEQUENCE oauth_nonces_id_seq
849 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
852 ALTER SEQUENCE oauth_nonces_id_seq OWNED BY oauth_nonces.id;
856 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -
859 CREATE TABLE oauth_tokens (
862 type character varying(20),
863 client_application_id integer,
864 token character varying(50),
865 secret character varying(50),
866 authorized_at timestamp without time zone,
867 invalidated_at timestamp without time zone,
868 created_at timestamp without time zone,
869 updated_at timestamp without time zone,
870 allow_read_prefs boolean DEFAULT false NOT NULL,
871 allow_write_prefs boolean DEFAULT false NOT NULL,
872 allow_write_diary boolean DEFAULT false NOT NULL,
873 allow_write_api boolean DEFAULT false NOT NULL,
874 allow_read_gpx boolean DEFAULT false NOT NULL,
875 allow_write_gpx boolean DEFAULT false NOT NULL,
876 callback_url character varying(255),
877 verifier character varying(20),
878 scope character varying(255),
879 valid_to timestamp without time zone,
880 allow_write_notes boolean DEFAULT false NOT NULL
885 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
888 CREATE SEQUENCE oauth_tokens_id_seq
897 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
900 ALTER SEQUENCE oauth_tokens_id_seq OWNED BY oauth_tokens.id;
904 -- Name: redactions; Type: TABLE; Schema: public; Owner: -
907 CREATE TABLE redactions (
909 title character varying(255),
911 created_at timestamp without time zone NOT NULL,
912 updated_at timestamp without time zone NOT NULL,
913 user_id bigint NOT NULL,
914 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
919 -- Name: redactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
922 CREATE SEQUENCE redactions_id_seq
931 -- Name: redactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
934 ALTER SEQUENCE redactions_id_seq OWNED BY redactions.id;
938 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -
941 CREATE TABLE relation_members (
942 relation_id bigint DEFAULT 0 NOT NULL,
943 member_type nwr_enum NOT NULL,
944 member_id bigint NOT NULL,
945 member_role character varying(255) NOT NULL,
946 version bigint DEFAULT 0 NOT NULL,
947 sequence_id integer DEFAULT 0 NOT NULL
952 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -
955 CREATE TABLE relation_tags (
956 relation_id bigint DEFAULT 0 NOT NULL,
957 k character varying(255) DEFAULT ''::character varying NOT NULL,
958 v character varying(255) DEFAULT ''::character varying NOT NULL,
959 version bigint NOT NULL
964 -- Name: relations; Type: TABLE; Schema: public; Owner: -
967 CREATE TABLE relations (
968 relation_id bigint DEFAULT 0 NOT NULL,
969 changeset_id bigint NOT NULL,
970 "timestamp" timestamp without time zone NOT NULL,
971 version bigint NOT NULL,
972 visible boolean DEFAULT true NOT NULL,
978 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
981 CREATE TABLE schema_migrations (
982 version character varying(255) NOT NULL
987 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -
990 CREATE TABLE user_blocks (
992 user_id bigint NOT NULL,
993 creator_id bigint NOT NULL,
994 reason text NOT NULL,
995 ends_at timestamp without time zone NOT NULL,
996 needs_view boolean DEFAULT false NOT NULL,
998 created_at timestamp without time zone,
999 updated_at timestamp without time zone,
1000 reason_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
1005 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1008 CREATE SEQUENCE user_blocks_id_seq
1017 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1020 ALTER SEQUENCE user_blocks_id_seq OWNED BY user_blocks.id;
1024 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -
1027 CREATE TABLE user_preferences (
1028 user_id bigint NOT NULL,
1029 k character varying(255) NOT NULL,
1030 v character varying(255) NOT NULL
1035 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -
1038 CREATE TABLE user_roles (
1039 id integer NOT NULL,
1040 user_id bigint NOT NULL,
1041 created_at timestamp without time zone,
1042 updated_at timestamp without time zone,
1043 role user_role_enum NOT NULL,
1044 granter_id bigint NOT NULL
1049 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1052 CREATE SEQUENCE user_roles_id_seq
1061 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1064 ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id;
1068 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -
1071 CREATE TABLE user_tokens (
1073 user_id bigint NOT NULL,
1074 token character varying(255) NOT NULL,
1075 expiry timestamp without time zone NOT NULL,
1081 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1084 CREATE SEQUENCE user_tokens_id_seq
1093 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1096 ALTER SEQUENCE user_tokens_id_seq OWNED BY user_tokens.id;
1100 -- Name: users; Type: TABLE; Schema: public; Owner: -
1103 CREATE TABLE users (
1104 email character varying(255) NOT NULL,
1106 pass_crypt character varying(255) NOT NULL,
1107 creation_time timestamp without time zone NOT NULL,
1108 display_name character varying(255) DEFAULT ''::character varying NOT NULL,
1109 data_public boolean DEFAULT false NOT NULL,
1110 description text DEFAULT ''::text NOT NULL,
1111 home_lat double precision,
1112 home_lon double precision,
1113 home_zoom smallint DEFAULT 3,
1114 nearby integer DEFAULT 50,
1115 pass_salt character varying(255),
1116 image_file_name text,
1117 email_valid boolean DEFAULT false NOT NULL,
1118 new_email character varying(255),
1119 creation_ip character varying(255),
1120 languages character varying(255),
1121 status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
1122 terms_agreed timestamp without time zone,
1123 consider_pd boolean DEFAULT false NOT NULL,
1124 preferred_editor character varying(255),
1125 terms_seen boolean DEFAULT false NOT NULL,
1126 auth_uid character varying(255),
1127 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL,
1128 image_fingerprint character varying(255),
1129 changesets_count integer DEFAULT 0 NOT NULL,
1130 traces_count integer DEFAULT 0 NOT NULL,
1131 diary_entries_count integer DEFAULT 0 NOT NULL,
1132 image_use_gravatar boolean DEFAULT false NOT NULL,
1133 image_content_type character varying(255),
1134 auth_provider character varying
1139 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1142 CREATE SEQUENCE users_id_seq
1151 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1154 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1158 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -
1161 CREATE TABLE way_nodes (
1162 way_id bigint NOT NULL,
1163 node_id bigint NOT NULL,
1164 version bigint NOT NULL,
1165 sequence_id bigint NOT NULL
1170 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -
1173 CREATE TABLE way_tags (
1174 way_id bigint DEFAULT 0 NOT NULL,
1175 k character varying(255) NOT NULL,
1176 v character varying(255) NOT NULL,
1177 version bigint NOT NULL
1182 -- Name: ways; Type: TABLE; Schema: public; Owner: -
1186 way_id bigint DEFAULT 0 NOT NULL,
1187 changeset_id bigint NOT NULL,
1188 "timestamp" timestamp without time zone NOT NULL,
1189 version bigint NOT NULL,
1190 visible boolean DEFAULT true NOT NULL,
1191 redaction_id integer
1196 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1199 ALTER TABLE ONLY acls ALTER COLUMN id SET DEFAULT nextval('acls_id_seq'::regclass);
1203 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1206 ALTER TABLE ONLY changeset_comments ALTER COLUMN id SET DEFAULT nextval('changeset_comments_id_seq'::regclass);
1210 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1213 ALTER TABLE ONLY changesets ALTER COLUMN id SET DEFAULT nextval('changesets_id_seq'::regclass);
1217 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1220 ALTER TABLE ONLY client_applications ALTER COLUMN id SET DEFAULT nextval('client_applications_id_seq'::regclass);
1224 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1227 ALTER TABLE ONLY current_nodes ALTER COLUMN id SET DEFAULT nextval('current_nodes_id_seq'::regclass);
1231 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1234 ALTER TABLE ONLY current_relations ALTER COLUMN id SET DEFAULT nextval('current_relations_id_seq'::regclass);
1238 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1241 ALTER TABLE ONLY current_ways ALTER COLUMN id SET DEFAULT nextval('current_ways_id_seq'::regclass);
1245 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1248 ALTER TABLE ONLY diary_comments ALTER COLUMN id SET DEFAULT nextval('diary_comments_id_seq'::regclass);
1252 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1255 ALTER TABLE ONLY diary_entries ALTER COLUMN id SET DEFAULT nextval('diary_entries_id_seq'::regclass);
1259 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1262 ALTER TABLE ONLY friends ALTER COLUMN id SET DEFAULT nextval('friends_id_seq'::regclass);
1266 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1269 ALTER TABLE ONLY gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('gpx_file_tags_id_seq'::regclass);
1273 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1276 ALTER TABLE ONLY gpx_files ALTER COLUMN id SET DEFAULT nextval('gpx_files_id_seq'::regclass);
1280 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1283 ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
1287 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1290 ALTER TABLE ONLY note_comments ALTER COLUMN id SET DEFAULT nextval('note_comments_id_seq'::regclass);
1294 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1297 ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
1301 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1304 ALTER TABLE ONLY oauth_nonces ALTER COLUMN id SET DEFAULT nextval('oauth_nonces_id_seq'::regclass);
1308 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1311 ALTER TABLE ONLY oauth_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_tokens_id_seq'::regclass);
1315 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1318 ALTER TABLE ONLY redactions ALTER COLUMN id SET DEFAULT nextval('redactions_id_seq'::regclass);
1322 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1325 ALTER TABLE ONLY user_blocks ALTER COLUMN id SET DEFAULT nextval('user_blocks_id_seq'::regclass);
1329 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1332 ALTER TABLE ONLY user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass);
1336 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1339 ALTER TABLE ONLY user_tokens ALTER COLUMN id SET DEFAULT nextval('user_tokens_id_seq'::regclass);
1343 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1346 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1350 -- Name: acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1353 ALTER TABLE ONLY acls
1354 ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
1358 -- Name: changeset_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1361 ALTER TABLE ONLY changeset_comments
1362 ADD CONSTRAINT changeset_comments_pkey PRIMARY KEY (id);
1366 -- Name: changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1369 ALTER TABLE ONLY changesets
1370 ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
1374 -- Name: client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1377 ALTER TABLE ONLY client_applications
1378 ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
1382 -- Name: current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1385 ALTER TABLE ONLY current_node_tags
1386 ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
1390 -- Name: current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -
1393 ALTER TABLE ONLY current_nodes
1394 ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
1398 -- Name: current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1401 ALTER TABLE ONLY current_relation_members
1402 ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, member_type, member_id, member_role, sequence_id);
1406 -- Name: current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1409 ALTER TABLE ONLY current_relation_tags
1410 ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
1414 -- Name: current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1417 ALTER TABLE ONLY current_relations
1418 ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
1422 -- Name: current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1425 ALTER TABLE ONLY current_way_nodes
1426 ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
1430 -- Name: current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1433 ALTER TABLE ONLY current_way_tags
1434 ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
1438 -- Name: current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1441 ALTER TABLE ONLY current_ways
1442 ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
1446 -- Name: diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1449 ALTER TABLE ONLY diary_comments
1450 ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
1454 -- Name: diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1457 ALTER TABLE ONLY diary_entries
1458 ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
1462 -- Name: diary_entry_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1465 ALTER TABLE ONLY diary_entry_subscriptions
1466 ADD CONSTRAINT diary_entry_subscriptions_pkey PRIMARY KEY (user_id, diary_entry_id);
1470 -- Name: friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1473 ALTER TABLE ONLY friends
1474 ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
1478 -- Name: gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1481 ALTER TABLE ONLY gpx_file_tags
1482 ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
1486 -- Name: gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1489 ALTER TABLE ONLY gpx_files
1490 ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
1494 -- Name: languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1497 ALTER TABLE ONLY languages
1498 ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
1502 -- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1505 ALTER TABLE ONLY messages
1506 ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
1510 -- Name: node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1513 ALTER TABLE ONLY node_tags
1514 ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
1518 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1521 ALTER TABLE ONLY nodes
1522 ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
1526 -- Name: note_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1529 ALTER TABLE ONLY note_comments
1530 ADD CONSTRAINT note_comments_pkey PRIMARY KEY (id);
1534 -- Name: notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1537 ALTER TABLE ONLY notes
1538 ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
1542 -- Name: oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1545 ALTER TABLE ONLY oauth_nonces
1546 ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
1550 -- Name: oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1553 ALTER TABLE ONLY oauth_tokens
1554 ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
1558 -- Name: redactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1561 ALTER TABLE ONLY redactions
1562 ADD CONSTRAINT redactions_pkey PRIMARY KEY (id);
1566 -- Name: relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1569 ALTER TABLE ONLY relation_members
1570 ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, member_type, member_id, member_role, sequence_id);
1574 -- Name: relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1577 ALTER TABLE ONLY relation_tags
1578 ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
1582 -- Name: relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1585 ALTER TABLE ONLY relations
1586 ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
1590 -- Name: user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1593 ALTER TABLE ONLY user_blocks
1594 ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
1598 -- Name: user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1601 ALTER TABLE ONLY user_preferences
1602 ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
1606 -- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1609 ALTER TABLE ONLY user_roles
1610 ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
1614 -- Name: user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1617 ALTER TABLE ONLY user_tokens
1618 ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
1622 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1625 ALTER TABLE ONLY users
1626 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1630 -- Name: way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1633 ALTER TABLE ONLY way_nodes
1634 ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
1638 -- Name: way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1641 ALTER TABLE ONLY way_tags
1642 ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
1646 -- Name: ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1649 ALTER TABLE ONLY ways
1650 ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
1654 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -
1657 CREATE INDEX acls_k_idx ON acls USING btree (k);
1661 -- Name: changeset_tags_id_idx; Type: INDEX; Schema: public; Owner: -
1664 CREATE INDEX changeset_tags_id_idx ON changeset_tags USING btree (changeset_id);
1668 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -
1671 CREATE INDEX changesets_bbox_idx ON changesets USING gist (min_lat, max_lat, min_lon, max_lon);
1675 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -
1678 CREATE INDEX changesets_closed_at_idx ON changesets USING btree (closed_at);
1682 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -
1685 CREATE INDEX changesets_created_at_idx ON changesets USING btree (created_at);
1689 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -
1692 CREATE INDEX changesets_user_id_created_at_idx ON changesets USING btree (user_id, created_at);
1696 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -
1699 CREATE INDEX changesets_user_id_id_idx ON changesets USING btree (user_id, id);
1703 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1706 CREATE INDEX current_nodes_tile_idx ON current_nodes USING btree (tile);
1710 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1713 CREATE INDEX current_nodes_timestamp_idx ON current_nodes USING btree ("timestamp");
1717 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
1720 CREATE INDEX current_relation_members_member_idx ON current_relation_members USING btree (member_type, member_id);
1724 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1727 CREATE INDEX current_relations_timestamp_idx ON current_relations USING btree ("timestamp");
1731 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
1734 CREATE INDEX current_way_nodes_node_idx ON current_way_nodes USING btree (node_id);
1738 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1741 CREATE INDEX current_ways_timestamp_idx ON current_ways USING btree ("timestamp");
1745 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1748 CREATE INDEX diary_comment_user_id_created_at_index ON diary_comments USING btree (user_id, created_at);
1752 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -
1755 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON diary_comments USING btree (diary_entry_id, id);
1759 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -
1762 CREATE INDEX diary_entry_created_at_index ON diary_entries USING btree (created_at);
1766 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -
1769 CREATE INDEX diary_entry_language_code_created_at_index ON diary_entries USING btree (language_code, created_at);
1773 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1776 CREATE INDEX diary_entry_user_id_created_at_index ON diary_entries USING btree (user_id, created_at);
1780 -- Name: friends_user_id_idx; Type: INDEX; Schema: public; Owner: -
1783 CREATE INDEX friends_user_id_idx ON friends USING btree (user_id);
1787 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -
1790 CREATE INDEX gpx_file_tags_gpxid_idx ON gpx_file_tags USING btree (gpx_id);
1794 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -
1797 CREATE INDEX gpx_file_tags_tag_idx ON gpx_file_tags USING btree (tag);
1801 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1804 CREATE INDEX gpx_files_timestamp_idx ON gpx_files USING btree ("timestamp");
1808 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -
1811 CREATE INDEX gpx_files_user_id_idx ON gpx_files USING btree (user_id);
1815 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -
1818 CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible, visibility);
1822 -- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1825 CREATE INDEX index_changeset_comments_on_created_at ON changeset_comments USING btree (created_at);
1829 -- Name: index_changesets_subscribers_on_changeset_id; Type: INDEX; Schema: public; Owner: -
1832 CREATE INDEX index_changesets_subscribers_on_changeset_id ON changesets_subscribers USING btree (changeset_id);
1836 -- Name: index_changesets_subscribers_on_subscriber_id_and_changeset_id; Type: INDEX; Schema: public; Owner: -
1839 CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_id ON changesets_subscribers USING btree (subscriber_id, changeset_id);
1843 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -
1846 CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
1850 -- Name: index_client_applications_on_user_id; Type: INDEX; Schema: public; Owner: -
1853 CREATE INDEX index_client_applications_on_user_id ON client_applications USING btree (user_id);
1857 -- Name: index_diary_entry_subscriptions_on_diary_entry_id; Type: INDEX; Schema: public; Owner: -
1860 CREATE INDEX index_diary_entry_subscriptions_on_diary_entry_id ON diary_entry_subscriptions USING btree (diary_entry_id);
1864 -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
1867 CREATE INDEX index_note_comments_on_body ON note_comments USING gin (to_tsvector('english'::regconfig, body));
1871 -- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1874 CREATE INDEX index_note_comments_on_created_at ON note_comments USING btree (created_at);
1878 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -
1881 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces USING btree (nonce, "timestamp");
1885 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -
1888 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token);
1892 -- Name: index_oauth_tokens_on_user_id; Type: INDEX; Schema: public; Owner: -
1895 CREATE INDEX index_oauth_tokens_on_user_id ON oauth_tokens USING btree (user_id);
1899 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
1902 CREATE INDEX index_user_blocks_on_user_id ON user_blocks USING btree (user_id);
1906 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -
1909 CREATE INDEX messages_from_user_id_idx ON messages USING btree (from_user_id);
1913 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -
1916 CREATE INDEX messages_to_user_id_idx ON messages USING btree (to_user_id);
1920 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
1923 CREATE INDEX nodes_changeset_id_idx ON nodes USING btree (changeset_id);
1927 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1930 CREATE INDEX nodes_tile_idx ON nodes USING btree (tile);
1934 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1937 CREATE INDEX nodes_timestamp_idx ON nodes USING btree ("timestamp");
1941 -- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -
1944 CREATE INDEX note_comments_note_id_idx ON note_comments USING btree (note_id);
1948 -- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -
1951 CREATE INDEX notes_created_at_idx ON notes USING btree (created_at);
1955 -- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -
1958 CREATE INDEX notes_tile_status_idx ON notes USING btree (tile, status);
1962 -- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -
1965 CREATE INDEX notes_updated_at_idx ON notes USING btree (updated_at);
1969 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -
1972 CREATE INDEX points_gpxid_idx ON gps_points USING btree (gpx_id);
1976 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -
1979 CREATE INDEX points_tile_idx ON gps_points USING btree (tile);
1983 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
1986 CREATE INDEX relation_members_member_idx ON relation_members USING btree (member_type, member_id);
1990 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
1993 CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
1997 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2000 CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
2004 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2007 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2011 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -
2014 CREATE INDEX user_id_idx ON friends USING btree (friend_user_id);
2018 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -
2021 CREATE UNIQUE INDEX user_roles_id_role_unique ON user_roles USING btree (user_id, role);
2025 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -
2028 CREATE UNIQUE INDEX user_tokens_token_idx ON user_tokens USING btree (token);
2032 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -
2035 CREATE INDEX user_tokens_user_id_idx ON user_tokens USING btree (user_id);
2039 -- Name: users_auth_idx; Type: INDEX; Schema: public; Owner: -
2042 CREATE UNIQUE INDEX users_auth_idx ON users USING btree (auth_provider, auth_uid);
2046 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -
2049 CREATE UNIQUE INDEX users_display_name_idx ON users USING btree (display_name);
2053 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -
2056 CREATE INDEX users_display_name_lower_idx ON users USING btree (lower((display_name)::text));
2060 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
2063 CREATE UNIQUE INDEX users_email_idx ON users USING btree (email);
2067 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -
2070 CREATE INDEX users_email_lower_idx ON users USING btree (lower((email)::text));
2074 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
2077 CREATE INDEX way_nodes_node_idx ON way_nodes USING btree (node_id);
2081 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2084 CREATE INDEX ways_changeset_id_idx ON ways USING btree (changeset_id);
2088 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2091 CREATE INDEX ways_timestamp_idx ON ways USING btree ("timestamp");
2095 -- Name: changeset_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2098 ALTER TABLE ONLY changeset_comments
2099 ADD CONSTRAINT changeset_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2103 -- Name: changeset_comments_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2106 ALTER TABLE ONLY changeset_comments
2107 ADD CONSTRAINT changeset_comments_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2111 -- Name: changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2114 ALTER TABLE ONLY changeset_tags
2115 ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2119 -- Name: changesets_subscribers_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2122 ALTER TABLE ONLY changesets_subscribers
2123 ADD CONSTRAINT changesets_subscribers_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2127 -- Name: changesets_subscribers_subscriber_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2130 ALTER TABLE ONLY changesets_subscribers
2131 ADD CONSTRAINT changesets_subscribers_subscriber_id_fkey FOREIGN KEY (subscriber_id) REFERENCES users(id);
2135 -- Name: changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2138 ALTER TABLE ONLY changesets
2139 ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2143 -- Name: client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2146 ALTER TABLE ONLY client_applications
2147 ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2151 -- Name: current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2154 ALTER TABLE ONLY current_node_tags
2155 ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2159 -- Name: current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2162 ALTER TABLE ONLY current_nodes
2163 ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2167 -- Name: current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2170 ALTER TABLE ONLY current_relation_members
2171 ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2175 -- Name: current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2178 ALTER TABLE ONLY current_relation_tags
2179 ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2183 -- Name: current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2186 ALTER TABLE ONLY current_relations
2187 ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2191 -- Name: current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2194 ALTER TABLE ONLY current_way_nodes
2195 ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2199 -- Name: current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2202 ALTER TABLE ONLY current_way_nodes
2203 ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2207 -- Name: current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2210 ALTER TABLE ONLY current_way_tags
2211 ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2215 -- Name: current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2218 ALTER TABLE ONLY current_ways
2219 ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2223 -- Name: diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2226 ALTER TABLE ONLY diary_comments
2227 ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2231 -- Name: diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2234 ALTER TABLE ONLY diary_comments
2235 ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2239 -- Name: diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2242 ALTER TABLE ONLY diary_entries
2243 ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES languages(code);
2247 -- Name: diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2250 ALTER TABLE ONLY diary_entries
2251 ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2255 -- Name: diary_entry_subscriptions_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2258 ALTER TABLE ONLY diary_entry_subscriptions
2259 ADD CONSTRAINT diary_entry_subscriptions_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2263 -- Name: diary_entry_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2266 ALTER TABLE ONLY diary_entry_subscriptions
2267 ADD CONSTRAINT diary_entry_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2271 -- Name: friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2274 ALTER TABLE ONLY friends
2275 ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES users(id);
2279 -- Name: friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2282 ALTER TABLE ONLY friends
2283 ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2287 -- Name: gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2290 ALTER TABLE ONLY gps_points
2291 ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2295 -- Name: gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2298 ALTER TABLE ONLY gpx_file_tags
2299 ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2303 -- Name: gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2306 ALTER TABLE ONLY gpx_files
2307 ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2311 -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2314 ALTER TABLE ONLY messages
2315 ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES users(id);
2319 -- Name: messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2322 ALTER TABLE ONLY messages
2323 ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES users(id);
2327 -- Name: node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2330 ALTER TABLE ONLY node_tags
2331 ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES nodes(node_id, version);
2335 -- Name: nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2338 ALTER TABLE ONLY nodes
2339 ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2343 -- Name: nodes_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2346 ALTER TABLE ONLY nodes
2347 ADD CONSTRAINT nodes_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2351 -- Name: note_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2354 ALTER TABLE ONLY note_comments
2355 ADD CONSTRAINT note_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2359 -- Name: note_comments_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2362 ALTER TABLE ONLY note_comments
2363 ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES notes(id);
2367 -- Name: oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2370 ALTER TABLE ONLY oauth_tokens
2371 ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES client_applications(id);
2375 -- Name: oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2378 ALTER TABLE ONLY oauth_tokens
2379 ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2383 -- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2386 ALTER TABLE ONLY redactions
2387 ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2391 -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2394 ALTER TABLE ONLY relation_members
2395 ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2399 -- Name: relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2402 ALTER TABLE ONLY relation_tags
2403 ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2407 -- Name: relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2410 ALTER TABLE ONLY relations
2411 ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2415 -- Name: relations_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2418 ALTER TABLE ONLY relations
2419 ADD CONSTRAINT relations_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2423 -- Name: user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2426 ALTER TABLE ONLY user_blocks
2427 ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES users(id);
2431 -- Name: user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2434 ALTER TABLE ONLY user_blocks
2435 ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES users(id);
2439 -- Name: user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2442 ALTER TABLE ONLY user_blocks
2443 ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2447 -- Name: user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2450 ALTER TABLE ONLY user_preferences
2451 ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2455 -- Name: user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2458 ALTER TABLE ONLY user_roles
2459 ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES users(id);
2463 -- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2466 ALTER TABLE ONLY user_roles
2467 ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2471 -- Name: user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2474 ALTER TABLE ONLY user_tokens
2475 ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2479 -- Name: way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2482 ALTER TABLE ONLY way_nodes
2483 ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2487 -- Name: way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2490 ALTER TABLE ONLY way_tags
2491 ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2495 -- Name: ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2498 ALTER TABLE ONLY ways
2499 ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2503 -- Name: ways_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2506 ALTER TABLE ONLY ways
2507 ADD CONSTRAINT ways_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2511 -- PostgreSQL database dump complete
2514 SET search_path TO "$user", public;
2516 INSERT INTO schema_migrations (version) VALUES ('1');
2518 INSERT INTO schema_migrations (version) VALUES ('10');
2520 INSERT INTO schema_migrations (version) VALUES ('11');
2522 INSERT INTO schema_migrations (version) VALUES ('12');
2524 INSERT INTO schema_migrations (version) VALUES ('13');
2526 INSERT INTO schema_migrations (version) VALUES ('14');
2528 INSERT INTO schema_migrations (version) VALUES ('15');
2530 INSERT INTO schema_migrations (version) VALUES ('16');
2532 INSERT INTO schema_migrations (version) VALUES ('17');
2534 INSERT INTO schema_migrations (version) VALUES ('18');
2536 INSERT INTO schema_migrations (version) VALUES ('19');
2538 INSERT INTO schema_migrations (version) VALUES ('2');
2540 INSERT INTO schema_migrations (version) VALUES ('20');
2542 INSERT INTO schema_migrations (version) VALUES ('20100513171259');
2544 INSERT INTO schema_migrations (version) VALUES ('20100516124737');
2546 INSERT INTO schema_migrations (version) VALUES ('20100910084426');
2548 INSERT INTO schema_migrations (version) VALUES ('20101114011429');
2550 INSERT INTO schema_migrations (version) VALUES ('20110322001319');
2552 INSERT INTO schema_migrations (version) VALUES ('20110508145337');
2554 INSERT INTO schema_migrations (version) VALUES ('20110521142405');
2556 INSERT INTO schema_migrations (version) VALUES ('20110925112722');
2558 INSERT INTO schema_migrations (version) VALUES ('20111116184519');
2560 INSERT INTO schema_migrations (version) VALUES ('20111212183945');
2562 INSERT INTO schema_migrations (version) VALUES ('20120123184321');
2564 INSERT INTO schema_migrations (version) VALUES ('20120208122334');
2566 INSERT INTO schema_migrations (version) VALUES ('20120208194454');
2568 INSERT INTO schema_migrations (version) VALUES ('20120214210114');
2570 INSERT INTO schema_migrations (version) VALUES ('20120219161649');
2572 INSERT INTO schema_migrations (version) VALUES ('20120318201948');
2574 INSERT INTO schema_migrations (version) VALUES ('20120328090602');
2576 INSERT INTO schema_migrations (version) VALUES ('20120404205604');
2578 INSERT INTO schema_migrations (version) VALUES ('20120808231205');
2580 INSERT INTO schema_migrations (version) VALUES ('20121005195010');
2582 INSERT INTO schema_migrations (version) VALUES ('20121012044047');
2584 INSERT INTO schema_migrations (version) VALUES ('20121119165817');
2586 INSERT INTO schema_migrations (version) VALUES ('20121202155309');
2588 INSERT INTO schema_migrations (version) VALUES ('20121203124841');
2590 INSERT INTO schema_migrations (version) VALUES ('20130328184137');
2592 INSERT INTO schema_migrations (version) VALUES ('20131212124700');
2594 INSERT INTO schema_migrations (version) VALUES ('20140115192822');
2596 INSERT INTO schema_migrations (version) VALUES ('20140117185510');
2598 INSERT INTO schema_migrations (version) VALUES ('20140210003018');
2600 INSERT INTO schema_migrations (version) VALUES ('20140507110937');
2602 INSERT INTO schema_migrations (version) VALUES ('20140519141742');
2604 INSERT INTO schema_migrations (version) VALUES ('20150110152606');
2606 INSERT INTO schema_migrations (version) VALUES ('20150111192335');
2608 INSERT INTO schema_migrations (version) VALUES ('20150222101847');
2610 INSERT INTO schema_migrations (version) VALUES ('20150818224516');
2612 INSERT INTO schema_migrations (version) VALUES ('20161002153425');
2614 INSERT INTO schema_migrations (version) VALUES ('20161011010929');
2616 INSERT INTO schema_migrations (version) VALUES ('20170222134109');
2618 INSERT INTO schema_migrations (version) VALUES ('21');
2620 INSERT INTO schema_migrations (version) VALUES ('22');
2622 INSERT INTO schema_migrations (version) VALUES ('23');
2624 INSERT INTO schema_migrations (version) VALUES ('24');
2626 INSERT INTO schema_migrations (version) VALUES ('25');
2628 INSERT INTO schema_migrations (version) VALUES ('26');
2630 INSERT INTO schema_migrations (version) VALUES ('27');
2632 INSERT INTO schema_migrations (version) VALUES ('28');
2634 INSERT INTO schema_migrations (version) VALUES ('29');
2636 INSERT INTO schema_migrations (version) VALUES ('3');
2638 INSERT INTO schema_migrations (version) VALUES ('30');
2640 INSERT INTO schema_migrations (version) VALUES ('31');
2642 INSERT INTO schema_migrations (version) VALUES ('32');
2644 INSERT INTO schema_migrations (version) VALUES ('33');
2646 INSERT INTO schema_migrations (version) VALUES ('34');
2648 INSERT INTO schema_migrations (version) VALUES ('35');
2650 INSERT INTO schema_migrations (version) VALUES ('36');
2652 INSERT INTO schema_migrations (version) VALUES ('37');
2654 INSERT INTO schema_migrations (version) VALUES ('38');
2656 INSERT INTO schema_migrations (version) VALUES ('39');
2658 INSERT INTO schema_migrations (version) VALUES ('4');
2660 INSERT INTO schema_migrations (version) VALUES ('40');
2662 INSERT INTO schema_migrations (version) VALUES ('41');
2664 INSERT INTO schema_migrations (version) VALUES ('42');
2666 INSERT INTO schema_migrations (version) VALUES ('43');
2668 INSERT INTO schema_migrations (version) VALUES ('44');
2670 INSERT INTO schema_migrations (version) VALUES ('45');
2672 INSERT INTO schema_migrations (version) VALUES ('46');
2674 INSERT INTO schema_migrations (version) VALUES ('47');
2676 INSERT INTO schema_migrations (version) VALUES ('48');
2678 INSERT INTO schema_migrations (version) VALUES ('49');
2680 INSERT INTO schema_migrations (version) VALUES ('5');
2682 INSERT INTO schema_migrations (version) VALUES ('50');
2684 INSERT INTO schema_migrations (version) VALUES ('51');
2686 INSERT INTO schema_migrations (version) VALUES ('52');
2688 INSERT INTO schema_migrations (version) VALUES ('53');
2690 INSERT INTO schema_migrations (version) VALUES ('54');
2692 INSERT INTO schema_migrations (version) VALUES ('55');
2694 INSERT INTO schema_migrations (version) VALUES ('56');
2696 INSERT INTO schema_migrations (version) VALUES ('57');
2698 INSERT INTO schema_migrations (version) VALUES ('6');
2700 INSERT INTO schema_migrations (version) VALUES ('7');
2702 INSERT INTO schema_migrations (version) VALUES ('8');
2704 INSERT INTO schema_migrations (version) VALUES ('9');