2 -- PostgreSQL database dump
5 -- Dumped from database version 9.5.3
6 -- Dumped by pg_dump version 9.5.3
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;
552 -- Name: diary_entry_subscriptions; Type: TABLE; Schema: public; Owner: -
555 CREATE TABLE diary_entry_subscriptions (
556 user_id bigint NOT NULL,
557 diary_entry_id bigint NOT NULL
562 -- Name: friends; Type: TABLE; Schema: public; Owner: -
565 CREATE TABLE friends (
567 user_id bigint NOT NULL,
568 friend_user_id bigint NOT NULL
573 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
576 CREATE SEQUENCE friends_id_seq
585 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
588 ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
592 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -
595 CREATE TABLE gps_points (
596 altitude double precision,
597 trackid integer NOT NULL,
598 latitude integer NOT NULL,
599 longitude integer NOT NULL,
600 gpx_id bigint NOT NULL,
601 "timestamp" timestamp without time zone,
607 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -
610 CREATE TABLE gpx_file_tags (
611 gpx_id bigint DEFAULT 0 NOT NULL,
612 tag character varying(255) NOT NULL,
618 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
621 CREATE SEQUENCE gpx_file_tags_id_seq
630 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
633 ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
637 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -
640 CREATE TABLE gpx_files (
642 user_id bigint NOT NULL,
643 visible boolean DEFAULT true NOT NULL,
644 name character varying(255) DEFAULT ''::character varying NOT NULL,
646 latitude double precision,
647 longitude double precision,
648 "timestamp" timestamp without time zone NOT NULL,
649 description character varying(255) DEFAULT ''::character varying NOT NULL,
650 inserted boolean NOT NULL,
651 visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
656 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
659 CREATE SEQUENCE gpx_files_id_seq
668 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
671 ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
675 -- Name: languages; Type: TABLE; Schema: public; Owner: -
678 CREATE TABLE languages (
679 code character varying(255) NOT NULL,
680 english_name character varying(255) NOT NULL,
681 native_name character varying(255)
686 -- Name: messages; Type: TABLE; Schema: public; Owner: -
689 CREATE TABLE messages (
691 from_user_id bigint NOT NULL,
692 title character varying(255) NOT NULL,
694 sent_on timestamp without time zone NOT NULL,
695 message_read boolean DEFAULT false NOT NULL,
696 to_user_id bigint NOT NULL,
697 to_user_visible boolean DEFAULT true NOT NULL,
698 from_user_visible boolean DEFAULT true NOT NULL,
699 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
704 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
707 CREATE SEQUENCE messages_id_seq
716 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
719 ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
723 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -
726 CREATE TABLE node_tags (
727 node_id bigint NOT NULL,
728 version bigint NOT NULL,
729 k character varying(255) DEFAULT ''::character varying NOT NULL,
730 v character varying(255) DEFAULT ''::character varying NOT NULL
735 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
739 node_id bigint NOT NULL,
740 latitude integer NOT NULL,
741 longitude integer NOT NULL,
742 changeset_id bigint NOT NULL,
743 visible boolean NOT NULL,
744 "timestamp" timestamp without time zone NOT NULL,
745 tile bigint NOT NULL,
746 version bigint NOT NULL,
752 -- Name: note_comments; Type: TABLE; Schema: public; Owner: -
755 CREATE TABLE note_comments (
757 note_id bigint NOT NULL,
758 visible boolean NOT NULL,
759 created_at timestamp without time zone NOT NULL,
763 event note_event_enum
768 -- Name: note_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
771 CREATE SEQUENCE note_comments_id_seq
780 -- Name: note_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
783 ALTER SEQUENCE note_comments_id_seq OWNED BY note_comments.id;
787 -- Name: notes; Type: TABLE; Schema: public; Owner: -
792 latitude integer NOT NULL,
793 longitude integer NOT NULL,
794 tile bigint NOT NULL,
795 updated_at timestamp without time zone NOT NULL,
796 created_at timestamp without time zone NOT NULL,
797 status note_status_enum NOT NULL,
798 closed_at timestamp without time zone
803 -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
806 CREATE SEQUENCE notes_id_seq
815 -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
818 ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
822 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -
825 CREATE TABLE oauth_nonces (
827 nonce character varying(255),
829 created_at timestamp without time zone,
830 updated_at timestamp without time zone
835 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
838 CREATE SEQUENCE oauth_nonces_id_seq
847 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
850 ALTER SEQUENCE oauth_nonces_id_seq OWNED BY oauth_nonces.id;
854 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -
857 CREATE TABLE oauth_tokens (
860 type character varying(20),
861 client_application_id integer,
862 token character varying(50),
863 secret character varying(50),
864 authorized_at timestamp without time zone,
865 invalidated_at timestamp without time zone,
866 created_at timestamp without time zone,
867 updated_at timestamp without time zone,
868 allow_read_prefs boolean DEFAULT false NOT NULL,
869 allow_write_prefs boolean DEFAULT false NOT NULL,
870 allow_write_diary boolean DEFAULT false NOT NULL,
871 allow_write_api boolean DEFAULT false NOT NULL,
872 allow_read_gpx boolean DEFAULT false NOT NULL,
873 allow_write_gpx boolean DEFAULT false NOT NULL,
874 callback_url character varying(255),
875 verifier character varying(20),
876 scope character varying(255),
877 valid_to timestamp without time zone,
878 allow_write_notes boolean DEFAULT false NOT NULL
883 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
886 CREATE SEQUENCE oauth_tokens_id_seq
895 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
898 ALTER SEQUENCE oauth_tokens_id_seq OWNED BY oauth_tokens.id;
902 -- Name: redactions; Type: TABLE; Schema: public; Owner: -
905 CREATE TABLE redactions (
907 title character varying(255),
909 created_at timestamp without time zone NOT NULL,
910 updated_at timestamp without time zone NOT NULL,
911 user_id bigint NOT NULL,
912 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
917 -- Name: redactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
920 CREATE SEQUENCE redactions_id_seq
929 -- Name: redactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
932 ALTER SEQUENCE redactions_id_seq OWNED BY redactions.id;
936 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -
939 CREATE TABLE relation_members (
940 relation_id bigint DEFAULT 0 NOT NULL,
941 member_type nwr_enum NOT NULL,
942 member_id bigint NOT NULL,
943 member_role character varying(255) NOT NULL,
944 version bigint DEFAULT 0 NOT NULL,
945 sequence_id integer DEFAULT 0 NOT NULL
950 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -
953 CREATE TABLE relation_tags (
954 relation_id bigint DEFAULT 0 NOT NULL,
955 k character varying(255) DEFAULT ''::character varying NOT NULL,
956 v character varying(255) DEFAULT ''::character varying NOT NULL,
957 version bigint NOT NULL
962 -- Name: relations; Type: TABLE; Schema: public; Owner: -
965 CREATE TABLE relations (
966 relation_id bigint DEFAULT 0 NOT NULL,
967 changeset_id bigint NOT NULL,
968 "timestamp" timestamp without time zone NOT NULL,
969 version bigint NOT NULL,
970 visible boolean DEFAULT true NOT NULL,
976 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
979 CREATE TABLE schema_migrations (
980 version character varying(255) NOT NULL
985 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -
988 CREATE TABLE user_blocks (
990 user_id bigint NOT NULL,
991 creator_id bigint NOT NULL,
992 reason text NOT NULL,
993 ends_at timestamp without time zone NOT NULL,
994 needs_view boolean DEFAULT false NOT NULL,
996 created_at timestamp without time zone,
997 updated_at timestamp without time zone,
998 reason_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
1003 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1006 CREATE SEQUENCE user_blocks_id_seq
1015 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1018 ALTER SEQUENCE user_blocks_id_seq OWNED BY user_blocks.id;
1022 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -
1025 CREATE TABLE user_preferences (
1026 user_id bigint NOT NULL,
1027 k character varying(255) NOT NULL,
1028 v character varying(255) NOT NULL
1033 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -
1036 CREATE TABLE user_roles (
1037 id integer NOT NULL,
1038 user_id bigint NOT NULL,
1039 created_at timestamp without time zone,
1040 updated_at timestamp without time zone,
1041 role user_role_enum NOT NULL,
1042 granter_id bigint NOT NULL
1047 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1050 CREATE SEQUENCE user_roles_id_seq
1059 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1062 ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id;
1066 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -
1069 CREATE TABLE user_tokens (
1071 user_id bigint NOT NULL,
1072 token character varying(255) NOT NULL,
1073 expiry timestamp without time zone NOT NULL,
1079 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1082 CREATE SEQUENCE user_tokens_id_seq
1091 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1094 ALTER SEQUENCE user_tokens_id_seq OWNED BY user_tokens.id;
1098 -- Name: users; Type: TABLE; Schema: public; Owner: -
1101 CREATE TABLE users (
1102 email character varying(255) NOT NULL,
1104 pass_crypt character varying(255) NOT NULL,
1105 creation_time timestamp without time zone NOT NULL,
1106 display_name character varying(255) DEFAULT ''::character varying NOT NULL,
1107 data_public boolean DEFAULT false NOT NULL,
1108 description text DEFAULT ''::text NOT NULL,
1109 home_lat double precision,
1110 home_lon double precision,
1111 home_zoom smallint DEFAULT 3,
1112 nearby integer DEFAULT 50,
1113 pass_salt character varying(255),
1114 image_file_name text,
1115 email_valid boolean DEFAULT false NOT NULL,
1116 new_email character varying(255),
1117 creation_ip character varying(255),
1118 languages character varying(255),
1119 status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
1120 terms_agreed timestamp without time zone,
1121 consider_pd boolean DEFAULT false NOT NULL,
1122 preferred_editor character varying(255),
1123 terms_seen boolean DEFAULT false NOT NULL,
1124 auth_uid character varying(255),
1125 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL,
1126 image_fingerprint character varying(255),
1127 changesets_count integer DEFAULT 0 NOT NULL,
1128 traces_count integer DEFAULT 0 NOT NULL,
1129 diary_entries_count integer DEFAULT 0 NOT NULL,
1130 image_use_gravatar boolean DEFAULT false NOT NULL,
1131 image_content_type character varying(255),
1132 auth_provider character varying
1137 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1140 CREATE SEQUENCE users_id_seq
1149 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1152 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1156 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -
1159 CREATE TABLE way_nodes (
1160 way_id bigint NOT NULL,
1161 node_id bigint NOT NULL,
1162 version bigint NOT NULL,
1163 sequence_id bigint NOT NULL
1168 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -
1171 CREATE TABLE way_tags (
1172 way_id bigint DEFAULT 0 NOT NULL,
1173 k character varying(255) NOT NULL,
1174 v character varying(255) NOT NULL,
1175 version bigint NOT NULL
1180 -- Name: ways; Type: TABLE; Schema: public; Owner: -
1184 way_id bigint DEFAULT 0 NOT NULL,
1185 changeset_id bigint NOT NULL,
1186 "timestamp" timestamp without time zone NOT NULL,
1187 version bigint NOT NULL,
1188 visible boolean DEFAULT true NOT NULL,
1189 redaction_id integer
1194 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1197 ALTER TABLE ONLY acls ALTER COLUMN id SET DEFAULT nextval('acls_id_seq'::regclass);
1201 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1204 ALTER TABLE ONLY changeset_comments ALTER COLUMN id SET DEFAULT nextval('changeset_comments_id_seq'::regclass);
1208 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1211 ALTER TABLE ONLY changesets ALTER COLUMN id SET DEFAULT nextval('changesets_id_seq'::regclass);
1215 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1218 ALTER TABLE ONLY client_applications ALTER COLUMN id SET DEFAULT nextval('client_applications_id_seq'::regclass);
1222 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1225 ALTER TABLE ONLY current_nodes ALTER COLUMN id SET DEFAULT nextval('current_nodes_id_seq'::regclass);
1229 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1232 ALTER TABLE ONLY current_relations ALTER COLUMN id SET DEFAULT nextval('current_relations_id_seq'::regclass);
1236 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1239 ALTER TABLE ONLY current_ways ALTER COLUMN id SET DEFAULT nextval('current_ways_id_seq'::regclass);
1243 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1246 ALTER TABLE ONLY diary_comments ALTER COLUMN id SET DEFAULT nextval('diary_comments_id_seq'::regclass);
1250 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1253 ALTER TABLE ONLY diary_entries ALTER COLUMN id SET DEFAULT nextval('diary_entries_id_seq'::regclass);
1257 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1260 ALTER TABLE ONLY friends ALTER COLUMN id SET DEFAULT nextval('friends_id_seq'::regclass);
1264 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1267 ALTER TABLE ONLY gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('gpx_file_tags_id_seq'::regclass);
1271 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1274 ALTER TABLE ONLY gpx_files ALTER COLUMN id SET DEFAULT nextval('gpx_files_id_seq'::regclass);
1278 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1281 ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
1285 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1288 ALTER TABLE ONLY note_comments ALTER COLUMN id SET DEFAULT nextval('note_comments_id_seq'::regclass);
1292 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1295 ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
1299 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1302 ALTER TABLE ONLY oauth_nonces ALTER COLUMN id SET DEFAULT nextval('oauth_nonces_id_seq'::regclass);
1306 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1309 ALTER TABLE ONLY oauth_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_tokens_id_seq'::regclass);
1313 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1316 ALTER TABLE ONLY redactions ALTER COLUMN id SET DEFAULT nextval('redactions_id_seq'::regclass);
1320 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1323 ALTER TABLE ONLY user_blocks ALTER COLUMN id SET DEFAULT nextval('user_blocks_id_seq'::regclass);
1327 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1330 ALTER TABLE ONLY user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass);
1334 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1337 ALTER TABLE ONLY user_tokens ALTER COLUMN id SET DEFAULT nextval('user_tokens_id_seq'::regclass);
1341 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1344 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1348 -- Name: acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1351 ALTER TABLE ONLY acls
1352 ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
1356 -- Name: changeset_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1359 ALTER TABLE ONLY changeset_comments
1360 ADD CONSTRAINT changeset_comments_pkey PRIMARY KEY (id);
1364 -- Name: changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1367 ALTER TABLE ONLY changesets
1368 ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
1372 -- Name: client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1375 ALTER TABLE ONLY client_applications
1376 ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
1380 -- Name: current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1383 ALTER TABLE ONLY current_node_tags
1384 ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
1388 -- Name: current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -
1391 ALTER TABLE ONLY current_nodes
1392 ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
1396 -- Name: current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1399 ALTER TABLE ONLY current_relation_members
1400 ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, member_type, member_id, member_role, sequence_id);
1404 -- Name: current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1407 ALTER TABLE ONLY current_relation_tags
1408 ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
1412 -- Name: current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1415 ALTER TABLE ONLY current_relations
1416 ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
1420 -- Name: current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1423 ALTER TABLE ONLY current_way_nodes
1424 ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
1428 -- Name: current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1431 ALTER TABLE ONLY current_way_tags
1432 ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
1436 -- Name: current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1439 ALTER TABLE ONLY current_ways
1440 ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
1444 -- Name: diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1447 ALTER TABLE ONLY diary_comments
1448 ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
1452 -- Name: diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1455 ALTER TABLE ONLY diary_entries
1456 ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
1460 -- Name: diary_entry_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1463 ALTER TABLE ONLY diary_entry_subscriptions
1464 ADD CONSTRAINT diary_entry_subscriptions_pkey PRIMARY KEY (user_id, diary_entry_id);
1468 -- Name: friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1471 ALTER TABLE ONLY friends
1472 ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
1476 -- Name: gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1479 ALTER TABLE ONLY gpx_file_tags
1480 ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
1484 -- Name: gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1487 ALTER TABLE ONLY gpx_files
1488 ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
1492 -- Name: languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1495 ALTER TABLE ONLY languages
1496 ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
1500 -- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1503 ALTER TABLE ONLY messages
1504 ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
1508 -- Name: node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1511 ALTER TABLE ONLY node_tags
1512 ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
1516 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1519 ALTER TABLE ONLY nodes
1520 ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
1524 -- Name: note_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1527 ALTER TABLE ONLY note_comments
1528 ADD CONSTRAINT note_comments_pkey PRIMARY KEY (id);
1532 -- Name: notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1535 ALTER TABLE ONLY notes
1536 ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
1540 -- Name: oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1543 ALTER TABLE ONLY oauth_nonces
1544 ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
1548 -- Name: oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1551 ALTER TABLE ONLY oauth_tokens
1552 ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
1556 -- Name: redactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1559 ALTER TABLE ONLY redactions
1560 ADD CONSTRAINT redactions_pkey PRIMARY KEY (id);
1564 -- Name: relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1567 ALTER TABLE ONLY relation_members
1568 ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, member_type, member_id, member_role, sequence_id);
1572 -- Name: relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1575 ALTER TABLE ONLY relation_tags
1576 ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
1580 -- Name: relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1583 ALTER TABLE ONLY relations
1584 ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
1588 -- Name: user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1591 ALTER TABLE ONLY user_blocks
1592 ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
1596 -- Name: user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1599 ALTER TABLE ONLY user_preferences
1600 ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
1604 -- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1607 ALTER TABLE ONLY user_roles
1608 ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
1612 -- Name: user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1615 ALTER TABLE ONLY user_tokens
1616 ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
1620 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1623 ALTER TABLE ONLY users
1624 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1628 -- Name: way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1631 ALTER TABLE ONLY way_nodes
1632 ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
1636 -- Name: way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1639 ALTER TABLE ONLY way_tags
1640 ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
1644 -- Name: ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1647 ALTER TABLE ONLY ways
1648 ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
1652 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -
1655 CREATE INDEX acls_k_idx ON acls USING btree (k);
1659 -- Name: changeset_tags_id_idx; Type: INDEX; Schema: public; Owner: -
1662 CREATE INDEX changeset_tags_id_idx ON changeset_tags USING btree (changeset_id);
1666 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -
1669 CREATE INDEX changesets_bbox_idx ON changesets USING gist (min_lat, max_lat, min_lon, max_lon);
1673 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -
1676 CREATE INDEX changesets_closed_at_idx ON changesets USING btree (closed_at);
1680 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -
1683 CREATE INDEX changesets_created_at_idx ON changesets USING btree (created_at);
1687 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -
1690 CREATE INDEX changesets_user_id_created_at_idx ON changesets USING btree (user_id, created_at);
1694 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -
1697 CREATE INDEX changesets_user_id_id_idx ON changesets USING btree (user_id, id);
1701 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1704 CREATE INDEX current_nodes_tile_idx ON current_nodes USING btree (tile);
1708 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1711 CREATE INDEX current_nodes_timestamp_idx ON current_nodes USING btree ("timestamp");
1715 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
1718 CREATE INDEX current_relation_members_member_idx ON current_relation_members USING btree (member_type, member_id);
1722 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1725 CREATE INDEX current_relations_timestamp_idx ON current_relations USING btree ("timestamp");
1729 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
1732 CREATE INDEX current_way_nodes_node_idx ON current_way_nodes USING btree (node_id);
1736 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1739 CREATE INDEX current_ways_timestamp_idx ON current_ways USING btree ("timestamp");
1743 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1746 CREATE INDEX diary_comment_user_id_created_at_index ON diary_comments USING btree (user_id, created_at);
1750 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -
1753 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON diary_comments USING btree (diary_entry_id, id);
1757 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -
1760 CREATE INDEX diary_entry_created_at_index ON diary_entries USING btree (created_at);
1764 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -
1767 CREATE INDEX diary_entry_language_code_created_at_index ON diary_entries USING btree (language_code, created_at);
1771 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1774 CREATE INDEX diary_entry_user_id_created_at_index ON diary_entries USING btree (user_id, created_at);
1778 -- Name: friends_user_id_idx; Type: INDEX; Schema: public; Owner: -
1781 CREATE INDEX friends_user_id_idx ON friends USING btree (user_id);
1785 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -
1788 CREATE INDEX gpx_file_tags_gpxid_idx ON gpx_file_tags USING btree (gpx_id);
1792 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -
1795 CREATE INDEX gpx_file_tags_tag_idx ON gpx_file_tags USING btree (tag);
1799 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1802 CREATE INDEX gpx_files_timestamp_idx ON gpx_files USING btree ("timestamp");
1806 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -
1809 CREATE INDEX gpx_files_user_id_idx ON gpx_files USING btree (user_id);
1813 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -
1816 CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible, visibility);
1820 -- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1823 CREATE INDEX index_changeset_comments_on_created_at ON changeset_comments USING btree (created_at);
1827 -- Name: index_changesets_subscribers_on_changeset_id; Type: INDEX; Schema: public; Owner: -
1830 CREATE INDEX index_changesets_subscribers_on_changeset_id ON changesets_subscribers USING btree (changeset_id);
1834 -- Name: index_changesets_subscribers_on_subscriber_id_and_changeset_id; Type: INDEX; Schema: public; Owner: -
1837 CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_id ON changesets_subscribers USING btree (subscriber_id, changeset_id);
1841 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -
1844 CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
1847 -- Name: index_diary_entry_subscriptions_on_diary_entry_id; Type: INDEX; Schema: public; Owner: -
1850 CREATE INDEX index_diary_entry_subscriptions_on_diary_entry_id ON diary_entry_subscriptions USING btree (diary_entry_id);
1853 -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
1856 CREATE INDEX index_note_comments_on_body ON note_comments USING gin (to_tsvector('english'::regconfig, body));
1860 -- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1863 CREATE INDEX index_note_comments_on_created_at ON note_comments USING btree (created_at);
1867 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -
1870 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces USING btree (nonce, "timestamp");
1874 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -
1877 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token);
1881 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
1884 CREATE INDEX index_user_blocks_on_user_id ON user_blocks USING btree (user_id);
1888 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -
1891 CREATE INDEX messages_from_user_id_idx ON messages USING btree (from_user_id);
1895 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -
1898 CREATE INDEX messages_to_user_id_idx ON messages USING btree (to_user_id);
1902 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
1905 CREATE INDEX nodes_changeset_id_idx ON nodes USING btree (changeset_id);
1909 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1912 CREATE INDEX nodes_tile_idx ON nodes USING btree (tile);
1916 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1919 CREATE INDEX nodes_timestamp_idx ON nodes USING btree ("timestamp");
1923 -- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -
1926 CREATE INDEX note_comments_note_id_idx ON note_comments USING btree (note_id);
1930 -- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -
1933 CREATE INDEX notes_created_at_idx ON notes USING btree (created_at);
1937 -- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -
1940 CREATE INDEX notes_tile_status_idx ON notes USING btree (tile, status);
1944 -- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -
1947 CREATE INDEX notes_updated_at_idx ON notes USING btree (updated_at);
1951 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -
1954 CREATE INDEX points_gpxid_idx ON gps_points USING btree (gpx_id);
1958 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -
1961 CREATE INDEX points_tile_idx ON gps_points USING btree (tile);
1965 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
1968 CREATE INDEX relation_members_member_idx ON relation_members USING btree (member_type, member_id);
1972 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
1975 CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
1979 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1982 CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
1986 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
1989 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
1993 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -
1996 CREATE INDEX user_id_idx ON friends USING btree (friend_user_id);
2000 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -
2003 CREATE UNIQUE INDEX user_roles_id_role_unique ON user_roles USING btree (user_id, role);
2007 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -
2010 CREATE UNIQUE INDEX user_tokens_token_idx ON user_tokens USING btree (token);
2014 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -
2017 CREATE INDEX user_tokens_user_id_idx ON user_tokens USING btree (user_id);
2021 -- Name: users_auth_idx; Type: INDEX; Schema: public; Owner: -
2024 CREATE UNIQUE INDEX users_auth_idx ON users USING btree (auth_provider, auth_uid);
2028 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -
2031 CREATE UNIQUE INDEX users_display_name_idx ON users USING btree (display_name);
2035 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -
2038 CREATE INDEX users_display_name_lower_idx ON users USING btree (lower((display_name)::text));
2042 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
2045 CREATE UNIQUE INDEX users_email_idx ON users USING btree (email);
2049 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -
2052 CREATE INDEX users_email_lower_idx ON users USING btree (lower((email)::text));
2056 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
2059 CREATE INDEX way_nodes_node_idx ON way_nodes USING btree (node_id);
2063 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2066 CREATE INDEX ways_changeset_id_idx ON ways USING btree (changeset_id);
2070 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2073 CREATE INDEX ways_timestamp_idx ON ways USING btree ("timestamp");
2077 -- Name: changeset_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2080 ALTER TABLE ONLY changeset_comments
2081 ADD CONSTRAINT changeset_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2085 -- Name: changeset_comments_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2088 ALTER TABLE ONLY changeset_comments
2089 ADD CONSTRAINT changeset_comments_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2093 -- Name: changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2096 ALTER TABLE ONLY changeset_tags
2097 ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2101 -- Name: changesets_subscribers_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2104 ALTER TABLE ONLY changesets_subscribers
2105 ADD CONSTRAINT changesets_subscribers_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2109 -- Name: changesets_subscribers_subscriber_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2112 ALTER TABLE ONLY changesets_subscribers
2113 ADD CONSTRAINT changesets_subscribers_subscriber_id_fkey FOREIGN KEY (subscriber_id) REFERENCES users(id);
2117 -- Name: changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2120 ALTER TABLE ONLY changesets
2121 ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2125 -- Name: client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2128 ALTER TABLE ONLY client_applications
2129 ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2133 -- Name: current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2136 ALTER TABLE ONLY current_node_tags
2137 ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2141 -- Name: current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2144 ALTER TABLE ONLY current_nodes
2145 ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2149 -- Name: current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2152 ALTER TABLE ONLY current_relation_members
2153 ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2157 -- Name: current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2160 ALTER TABLE ONLY current_relation_tags
2161 ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2165 -- Name: current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2168 ALTER TABLE ONLY current_relations
2169 ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2173 -- Name: current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2176 ALTER TABLE ONLY current_way_nodes
2177 ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2181 -- Name: current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2184 ALTER TABLE ONLY current_way_nodes
2185 ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2189 -- Name: current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2192 ALTER TABLE ONLY current_way_tags
2193 ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2197 -- Name: current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2200 ALTER TABLE ONLY current_ways
2201 ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2205 -- Name: diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2208 ALTER TABLE ONLY diary_comments
2209 ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2213 -- Name: diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2216 ALTER TABLE ONLY diary_comments
2217 ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2221 -- Name: diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2224 ALTER TABLE ONLY diary_entries
2225 ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES languages(code);
2229 -- Name: diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2232 ALTER TABLE ONLY diary_entries
2233 ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2236 -- Name: diary_entry_subscriptions_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2240 ALTER TABLE ONLY diary_entry_subscriptions
2241 ADD CONSTRAINT diary_entry_subscriptions_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2245 -- Name: diary_entry_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2248 ALTER TABLE ONLY diary_entry_subscriptions
2249 ADD CONSTRAINT diary_entry_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2253 -- Name: friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2256 ALTER TABLE ONLY friends
2257 ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES users(id);
2261 -- Name: friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2264 ALTER TABLE ONLY friends
2265 ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2269 -- Name: gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2272 ALTER TABLE ONLY gps_points
2273 ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2277 -- Name: gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2280 ALTER TABLE ONLY gpx_file_tags
2281 ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2285 -- Name: gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2288 ALTER TABLE ONLY gpx_files
2289 ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2293 -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2296 ALTER TABLE ONLY messages
2297 ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES users(id);
2301 -- Name: messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2304 ALTER TABLE ONLY messages
2305 ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES users(id);
2309 -- Name: node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2312 ALTER TABLE ONLY node_tags
2313 ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES nodes(node_id, version);
2317 -- Name: nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2320 ALTER TABLE ONLY nodes
2321 ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2325 -- Name: nodes_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2328 ALTER TABLE ONLY nodes
2329 ADD CONSTRAINT nodes_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2333 -- Name: note_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2336 ALTER TABLE ONLY note_comments
2337 ADD CONSTRAINT note_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2341 -- Name: note_comments_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2344 ALTER TABLE ONLY note_comments
2345 ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES notes(id);
2349 -- Name: oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2352 ALTER TABLE ONLY oauth_tokens
2353 ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES client_applications(id);
2357 -- Name: oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2360 ALTER TABLE ONLY oauth_tokens
2361 ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2365 -- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2368 ALTER TABLE ONLY redactions
2369 ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2373 -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2376 ALTER TABLE ONLY relation_members
2377 ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2381 -- Name: relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2384 ALTER TABLE ONLY relation_tags
2385 ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2389 -- Name: relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2392 ALTER TABLE ONLY relations
2393 ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2397 -- Name: relations_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2400 ALTER TABLE ONLY relations
2401 ADD CONSTRAINT relations_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2405 -- Name: user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2408 ALTER TABLE ONLY user_blocks
2409 ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES users(id);
2413 -- Name: user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2416 ALTER TABLE ONLY user_blocks
2417 ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES users(id);
2421 -- Name: user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2424 ALTER TABLE ONLY user_blocks
2425 ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2429 -- Name: user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2432 ALTER TABLE ONLY user_preferences
2433 ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2437 -- Name: user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2440 ALTER TABLE ONLY user_roles
2441 ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES users(id);
2445 -- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2448 ALTER TABLE ONLY user_roles
2449 ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2453 -- Name: user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2456 ALTER TABLE ONLY user_tokens
2457 ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2461 -- Name: way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2464 ALTER TABLE ONLY way_nodes
2465 ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2469 -- Name: way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2472 ALTER TABLE ONLY way_tags
2473 ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2477 -- Name: ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2480 ALTER TABLE ONLY ways
2481 ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2485 -- Name: ways_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2488 ALTER TABLE ONLY ways
2489 ADD CONSTRAINT ways_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2493 -- PostgreSQL database dump complete
2496 SET search_path TO "$user", public;
2498 INSERT INTO schema_migrations (version) VALUES ('1');
2500 INSERT INTO schema_migrations (version) VALUES ('10');
2502 INSERT INTO schema_migrations (version) VALUES ('11');
2504 INSERT INTO schema_migrations (version) VALUES ('12');
2506 INSERT INTO schema_migrations (version) VALUES ('13');
2508 INSERT INTO schema_migrations (version) VALUES ('14');
2510 INSERT INTO schema_migrations (version) VALUES ('15');
2512 INSERT INTO schema_migrations (version) VALUES ('16');
2514 INSERT INTO schema_migrations (version) VALUES ('17');
2516 INSERT INTO schema_migrations (version) VALUES ('18');
2518 INSERT INTO schema_migrations (version) VALUES ('19');
2520 INSERT INTO schema_migrations (version) VALUES ('2');
2522 INSERT INTO schema_migrations (version) VALUES ('20');
2524 INSERT INTO schema_migrations (version) VALUES ('20100513171259');
2526 INSERT INTO schema_migrations (version) VALUES ('20100516124737');
2528 INSERT INTO schema_migrations (version) VALUES ('20100910084426');
2530 INSERT INTO schema_migrations (version) VALUES ('20101114011429');
2532 INSERT INTO schema_migrations (version) VALUES ('20110322001319');
2534 INSERT INTO schema_migrations (version) VALUES ('20110508145337');
2536 INSERT INTO schema_migrations (version) VALUES ('20110521142405');
2538 INSERT INTO schema_migrations (version) VALUES ('20110925112722');
2540 INSERT INTO schema_migrations (version) VALUES ('20111116184519');
2542 INSERT INTO schema_migrations (version) VALUES ('20111212183945');
2544 INSERT INTO schema_migrations (version) VALUES ('20120123184321');
2546 INSERT INTO schema_migrations (version) VALUES ('20120208122334');
2548 INSERT INTO schema_migrations (version) VALUES ('20120208194454');
2550 INSERT INTO schema_migrations (version) VALUES ('20120214210114');
2552 INSERT INTO schema_migrations (version) VALUES ('20120219161649');
2554 INSERT INTO schema_migrations (version) VALUES ('20120318201948');
2556 INSERT INTO schema_migrations (version) VALUES ('20120328090602');
2558 INSERT INTO schema_migrations (version) VALUES ('20120404205604');
2560 INSERT INTO schema_migrations (version) VALUES ('20120808231205');
2562 INSERT INTO schema_migrations (version) VALUES ('20121005195010');
2564 INSERT INTO schema_migrations (version) VALUES ('20121012044047');
2566 INSERT INTO schema_migrations (version) VALUES ('20121119165817');
2568 INSERT INTO schema_migrations (version) VALUES ('20121202155309');
2570 INSERT INTO schema_migrations (version) VALUES ('20121203124841');
2572 INSERT INTO schema_migrations (version) VALUES ('20130328184137');
2574 INSERT INTO schema_migrations (version) VALUES ('20131029121300');
2576 INSERT INTO schema_migrations (version) VALUES ('20131212124700');
2578 INSERT INTO schema_migrations (version) VALUES ('20140115192822');
2580 INSERT INTO schema_migrations (version) VALUES ('20140117185510');
2582 INSERT INTO schema_migrations (version) VALUES ('20140210003018');
2584 INSERT INTO schema_migrations (version) VALUES ('20140507110937');
2586 INSERT INTO schema_migrations (version) VALUES ('20140519141742');
2588 INSERT INTO schema_migrations (version) VALUES ('20150110152606');
2590 INSERT INTO schema_migrations (version) VALUES ('20150111192335');
2592 INSERT INTO schema_migrations (version) VALUES ('20150222101847');
2594 INSERT INTO schema_migrations (version) VALUES ('20150818224516');
2596 INSERT INTO schema_migrations (version) VALUES ('21');
2598 INSERT INTO schema_migrations (version) VALUES ('22');
2600 INSERT INTO schema_migrations (version) VALUES ('23');
2602 INSERT INTO schema_migrations (version) VALUES ('24');
2604 INSERT INTO schema_migrations (version) VALUES ('25');
2606 INSERT INTO schema_migrations (version) VALUES ('26');
2608 INSERT INTO schema_migrations (version) VALUES ('27');
2610 INSERT INTO schema_migrations (version) VALUES ('28');
2612 INSERT INTO schema_migrations (version) VALUES ('29');
2614 INSERT INTO schema_migrations (version) VALUES ('3');
2616 INSERT INTO schema_migrations (version) VALUES ('30');
2618 INSERT INTO schema_migrations (version) VALUES ('31');
2620 INSERT INTO schema_migrations (version) VALUES ('32');
2622 INSERT INTO schema_migrations (version) VALUES ('33');
2624 INSERT INTO schema_migrations (version) VALUES ('34');
2626 INSERT INTO schema_migrations (version) VALUES ('35');
2628 INSERT INTO schema_migrations (version) VALUES ('36');
2630 INSERT INTO schema_migrations (version) VALUES ('37');
2632 INSERT INTO schema_migrations (version) VALUES ('38');
2634 INSERT INTO schema_migrations (version) VALUES ('39');
2636 INSERT INTO schema_migrations (version) VALUES ('4');
2638 INSERT INTO schema_migrations (version) VALUES ('40');
2640 INSERT INTO schema_migrations (version) VALUES ('41');
2642 INSERT INTO schema_migrations (version) VALUES ('42');
2644 INSERT INTO schema_migrations (version) VALUES ('43');
2646 INSERT INTO schema_migrations (version) VALUES ('44');
2648 INSERT INTO schema_migrations (version) VALUES ('45');
2650 INSERT INTO schema_migrations (version) VALUES ('46');
2652 INSERT INTO schema_migrations (version) VALUES ('47');
2654 INSERT INTO schema_migrations (version) VALUES ('48');
2656 INSERT INTO schema_migrations (version) VALUES ('49');
2658 INSERT INTO schema_migrations (version) VALUES ('5');
2660 INSERT INTO schema_migrations (version) VALUES ('50');
2662 INSERT INTO schema_migrations (version) VALUES ('51');
2664 INSERT INTO schema_migrations (version) VALUES ('52');
2666 INSERT INTO schema_migrations (version) VALUES ('53');
2668 INSERT INTO schema_migrations (version) VALUES ('54');
2670 INSERT INTO schema_migrations (version) VALUES ('55');
2672 INSERT INTO schema_migrations (version) VALUES ('56');
2674 INSERT INTO schema_migrations (version) VALUES ('57');
2676 INSERT INTO schema_migrations (version) VALUES ('6');
2678 INSERT INTO schema_migrations (version) VALUES ('7');
2680 INSERT INTO schema_migrations (version) VALUES ('8');
2682 INSERT INTO schema_migrations (version) VALUES ('9');