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;
554 -- Name: friends; Type: TABLE; Schema: public; Owner: -
557 CREATE TABLE friends (
559 user_id bigint NOT NULL,
560 friend_user_id bigint NOT NULL
565 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
568 CREATE SEQUENCE friends_id_seq
577 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
580 ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
584 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -
587 CREATE TABLE gps_points (
588 altitude double precision,
589 trackid integer NOT NULL,
590 latitude integer NOT NULL,
591 longitude integer NOT NULL,
592 gpx_id bigint NOT NULL,
593 "timestamp" timestamp without time zone,
599 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -
602 CREATE TABLE gpx_file_tags (
603 gpx_id bigint DEFAULT 0 NOT NULL,
604 tag character varying(255) NOT NULL,
610 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
613 CREATE SEQUENCE gpx_file_tags_id_seq
622 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
625 ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
629 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -
632 CREATE TABLE gpx_files (
634 user_id bigint NOT NULL,
635 visible boolean DEFAULT true NOT NULL,
636 name character varying(255) DEFAULT ''::character varying NOT NULL,
638 latitude double precision,
639 longitude double precision,
640 "timestamp" timestamp without time zone NOT NULL,
641 description character varying(255) DEFAULT ''::character varying NOT NULL,
642 inserted boolean NOT NULL,
643 visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
648 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
651 CREATE SEQUENCE gpx_files_id_seq
660 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
663 ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
667 -- Name: issues; Type: TABLE; Schema: public; Owner: -; Tablespace:
670 CREATE TABLE issues (
672 reportable_type character varying,
673 reportable_id integer,
676 resolved_at timestamp without time zone,
678 created_at timestamp without time zone NOT NULL,
679 updated_at timestamp without time zone NOT NULL
684 -- Name: issues_id_seq; Type: SEQUENCE; Schema: public; Owner: -
687 CREATE SEQUENCE issues_id_seq
696 -- Name: issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
699 ALTER SEQUENCE issues_id_seq OWNED BY issues.id;
703 -- Name: languages; Type: TABLE; Schema: public; Owner: -
706 CREATE TABLE languages (
707 code character varying(255) NOT NULL,
708 english_name character varying(255) NOT NULL,
709 native_name character varying(255)
714 -- Name: messages; Type: TABLE; Schema: public; Owner: -
717 CREATE TABLE messages (
719 from_user_id bigint NOT NULL,
720 title character varying(255) NOT NULL,
722 sent_on timestamp without time zone NOT NULL,
723 message_read boolean DEFAULT false NOT NULL,
724 to_user_id bigint NOT NULL,
725 to_user_visible boolean DEFAULT true NOT NULL,
726 from_user_visible boolean DEFAULT true NOT NULL,
727 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
732 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
735 CREATE SEQUENCE messages_id_seq
744 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
747 ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
751 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -
754 CREATE TABLE node_tags (
755 node_id bigint NOT NULL,
756 version bigint NOT NULL,
757 k character varying(255) DEFAULT ''::character varying NOT NULL,
758 v character varying(255) DEFAULT ''::character varying NOT NULL
763 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
767 node_id bigint NOT NULL,
768 latitude integer NOT NULL,
769 longitude integer NOT NULL,
770 changeset_id bigint NOT NULL,
771 visible boolean NOT NULL,
772 "timestamp" timestamp without time zone NOT NULL,
773 tile bigint NOT NULL,
774 version bigint NOT NULL,
780 -- Name: note_comments; Type: TABLE; Schema: public; Owner: -
783 CREATE TABLE note_comments (
785 note_id bigint NOT NULL,
786 visible boolean NOT NULL,
787 created_at timestamp without time zone NOT NULL,
791 event note_event_enum
796 -- Name: note_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
799 CREATE SEQUENCE note_comments_id_seq
808 -- Name: note_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
811 ALTER SEQUENCE note_comments_id_seq OWNED BY note_comments.id;
815 -- Name: notes; Type: TABLE; Schema: public; Owner: -
820 latitude integer NOT NULL,
821 longitude integer NOT NULL,
822 tile bigint NOT NULL,
823 updated_at timestamp without time zone NOT NULL,
824 created_at timestamp without time zone NOT NULL,
825 status note_status_enum NOT NULL,
826 closed_at timestamp without time zone
831 -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
834 CREATE SEQUENCE notes_id_seq
843 -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
846 ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
850 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -
853 CREATE TABLE oauth_nonces (
855 nonce character varying(255),
857 created_at timestamp without time zone,
858 updated_at timestamp without time zone
863 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
866 CREATE SEQUENCE oauth_nonces_id_seq
875 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
878 ALTER SEQUENCE oauth_nonces_id_seq OWNED BY oauth_nonces.id;
882 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -
885 CREATE TABLE oauth_tokens (
888 type character varying(20),
889 client_application_id integer,
890 token character varying(50),
891 secret character varying(50),
892 authorized_at timestamp without time zone,
893 invalidated_at timestamp without time zone,
894 created_at timestamp without time zone,
895 updated_at timestamp without time zone,
896 allow_read_prefs boolean DEFAULT false NOT NULL,
897 allow_write_prefs boolean DEFAULT false NOT NULL,
898 allow_write_diary boolean DEFAULT false NOT NULL,
899 allow_write_api boolean DEFAULT false NOT NULL,
900 allow_read_gpx boolean DEFAULT false NOT NULL,
901 allow_write_gpx boolean DEFAULT false NOT NULL,
902 callback_url character varying(255),
903 verifier character varying(20),
904 scope character varying(255),
905 valid_to timestamp without time zone,
906 allow_write_notes boolean DEFAULT false NOT NULL
911 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
914 CREATE SEQUENCE oauth_tokens_id_seq
923 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
926 ALTER SEQUENCE oauth_tokens_id_seq OWNED BY oauth_tokens.id;
930 -- Name: redactions; Type: TABLE; Schema: public; Owner: -
933 CREATE TABLE redactions (
935 title character varying(255),
937 created_at timestamp without time zone NOT NULL,
938 updated_at timestamp without time zone NOT NULL,
939 user_id bigint NOT NULL,
940 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
945 -- Name: redactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
948 CREATE SEQUENCE redactions_id_seq
957 -- Name: redactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
960 ALTER SEQUENCE redactions_id_seq OWNED BY redactions.id;
964 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -
967 CREATE TABLE relation_members (
968 relation_id bigint DEFAULT 0 NOT NULL,
969 member_type nwr_enum NOT NULL,
970 member_id bigint NOT NULL,
971 member_role character varying(255) NOT NULL,
972 version bigint DEFAULT 0 NOT NULL,
973 sequence_id integer DEFAULT 0 NOT NULL
978 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -
981 CREATE TABLE relation_tags (
982 relation_id bigint DEFAULT 0 NOT NULL,
983 k character varying(255) DEFAULT ''::character varying NOT NULL,
984 v character varying(255) DEFAULT ''::character varying NOT NULL,
985 version bigint NOT NULL
990 -- Name: relations; Type: TABLE; Schema: public; Owner: -
993 CREATE TABLE relations (
994 relation_id bigint DEFAULT 0 NOT NULL,
995 changeset_id bigint NOT NULL,
996 "timestamp" timestamp without time zone NOT NULL,
997 version bigint NOT NULL,
998 visible boolean DEFAULT true NOT NULL,
1004 -- Name: reports; Type: TABLE; Schema: public; Owner: -; Tablespace:
1007 CREATE TABLE reports (
1008 id integer NOT NULL,
1012 created_at timestamp without time zone NOT NULL,
1013 updated_at timestamp without time zone NOT NULL
1018 -- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1021 CREATE SEQUENCE reports_id_seq
1030 -- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1033 ALTER SEQUENCE reports_id_seq OWNED BY reports.id;
1037 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1040 CREATE TABLE schema_migrations (
1041 version character varying(255) NOT NULL
1046 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -
1049 CREATE TABLE user_blocks (
1050 id integer NOT NULL,
1051 user_id bigint NOT NULL,
1052 creator_id bigint NOT NULL,
1053 reason text NOT NULL,
1054 ends_at timestamp without time zone NOT NULL,
1055 needs_view boolean DEFAULT false NOT NULL,
1057 created_at timestamp without time zone,
1058 updated_at timestamp without time zone,
1059 reason_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
1064 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1067 CREATE SEQUENCE user_blocks_id_seq
1076 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1079 ALTER SEQUENCE user_blocks_id_seq OWNED BY user_blocks.id;
1083 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -
1086 CREATE TABLE user_preferences (
1087 user_id bigint NOT NULL,
1088 k character varying(255) NOT NULL,
1089 v character varying(255) NOT NULL
1094 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -
1097 CREATE TABLE user_roles (
1098 id integer NOT NULL,
1099 user_id bigint NOT NULL,
1100 created_at timestamp without time zone,
1101 updated_at timestamp without time zone,
1102 role user_role_enum NOT NULL,
1103 granter_id bigint NOT NULL
1108 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1111 CREATE SEQUENCE user_roles_id_seq
1120 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1123 ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id;
1127 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -
1130 CREATE TABLE user_tokens (
1132 user_id bigint NOT NULL,
1133 token character varying(255) NOT NULL,
1134 expiry timestamp without time zone NOT NULL,
1140 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1143 CREATE SEQUENCE user_tokens_id_seq
1152 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1155 ALTER SEQUENCE user_tokens_id_seq OWNED BY user_tokens.id;
1159 -- Name: users; Type: TABLE; Schema: public; Owner: -
1162 CREATE TABLE users (
1163 email character varying(255) NOT NULL,
1165 pass_crypt character varying(255) NOT NULL,
1166 creation_time timestamp without time zone NOT NULL,
1167 display_name character varying(255) DEFAULT ''::character varying NOT NULL,
1168 data_public boolean DEFAULT false NOT NULL,
1169 description text DEFAULT ''::text NOT NULL,
1170 home_lat double precision,
1171 home_lon double precision,
1172 home_zoom smallint DEFAULT 3,
1173 nearby integer DEFAULT 50,
1174 pass_salt character varying(255),
1175 image_file_name text,
1176 email_valid boolean DEFAULT false NOT NULL,
1177 new_email character varying(255),
1178 creation_ip character varying(255),
1179 languages character varying(255),
1180 status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
1181 terms_agreed timestamp without time zone,
1182 consider_pd boolean DEFAULT false NOT NULL,
1183 preferred_editor character varying(255),
1184 terms_seen boolean DEFAULT false NOT NULL,
1185 auth_uid character varying(255),
1186 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL,
1187 image_fingerprint character varying(255),
1188 changesets_count integer DEFAULT 0 NOT NULL,
1189 traces_count integer DEFAULT 0 NOT NULL,
1190 diary_entries_count integer DEFAULT 0 NOT NULL,
1191 image_use_gravatar boolean DEFAULT false NOT NULL,
1192 image_content_type character varying(255),
1193 auth_provider character varying
1198 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1201 CREATE SEQUENCE users_id_seq
1210 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1213 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1217 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -
1220 CREATE TABLE way_nodes (
1221 way_id bigint NOT NULL,
1222 node_id bigint NOT NULL,
1223 version bigint NOT NULL,
1224 sequence_id bigint NOT NULL
1229 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -
1232 CREATE TABLE way_tags (
1233 way_id bigint DEFAULT 0 NOT NULL,
1234 k character varying(255) NOT NULL,
1235 v character varying(255) NOT NULL,
1236 version bigint NOT NULL
1241 -- Name: ways; Type: TABLE; Schema: public; Owner: -
1245 way_id bigint DEFAULT 0 NOT NULL,
1246 changeset_id bigint NOT NULL,
1247 "timestamp" timestamp without time zone NOT NULL,
1248 version bigint NOT NULL,
1249 visible boolean DEFAULT true NOT NULL,
1250 redaction_id integer
1255 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1258 ALTER TABLE ONLY acls ALTER COLUMN id SET DEFAULT nextval('acls_id_seq'::regclass);
1262 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1265 ALTER TABLE ONLY changeset_comments ALTER COLUMN id SET DEFAULT nextval('changeset_comments_id_seq'::regclass);
1269 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1272 ALTER TABLE ONLY changesets ALTER COLUMN id SET DEFAULT nextval('changesets_id_seq'::regclass);
1276 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1279 ALTER TABLE ONLY client_applications ALTER COLUMN id SET DEFAULT nextval('client_applications_id_seq'::regclass);
1283 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1286 ALTER TABLE ONLY current_nodes ALTER COLUMN id SET DEFAULT nextval('current_nodes_id_seq'::regclass);
1290 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1293 ALTER TABLE ONLY current_relations ALTER COLUMN id SET DEFAULT nextval('current_relations_id_seq'::regclass);
1297 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1300 ALTER TABLE ONLY current_ways ALTER COLUMN id SET DEFAULT nextval('current_ways_id_seq'::regclass);
1304 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1307 ALTER TABLE ONLY diary_comments ALTER COLUMN id SET DEFAULT nextval('diary_comments_id_seq'::regclass);
1311 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1314 ALTER TABLE ONLY diary_entries ALTER COLUMN id SET DEFAULT nextval('diary_entries_id_seq'::regclass);
1318 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1321 ALTER TABLE ONLY friends ALTER COLUMN id SET DEFAULT nextval('friends_id_seq'::regclass);
1325 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1328 ALTER TABLE ONLY gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('gpx_file_tags_id_seq'::regclass);
1332 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1335 ALTER TABLE ONLY gpx_files ALTER COLUMN id SET DEFAULT nextval('gpx_files_id_seq'::regclass);
1339 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1342 ALTER TABLE ONLY issues ALTER COLUMN id SET DEFAULT nextval('issues_id_seq'::regclass);
1346 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1349 ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
1353 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1356 ALTER TABLE ONLY note_comments ALTER COLUMN id SET DEFAULT nextval('note_comments_id_seq'::regclass);
1360 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1363 ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
1367 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1370 ALTER TABLE ONLY oauth_nonces ALTER COLUMN id SET DEFAULT nextval('oauth_nonces_id_seq'::regclass);
1374 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1377 ALTER TABLE ONLY oauth_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_tokens_id_seq'::regclass);
1381 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1384 ALTER TABLE ONLY redactions ALTER COLUMN id SET DEFAULT nextval('redactions_id_seq'::regclass);
1388 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1391 ALTER TABLE ONLY reports ALTER COLUMN id SET DEFAULT nextval('reports_id_seq'::regclass);
1395 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1398 ALTER TABLE ONLY user_blocks ALTER COLUMN id SET DEFAULT nextval('user_blocks_id_seq'::regclass);
1402 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1405 ALTER TABLE ONLY user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass);
1409 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1412 ALTER TABLE ONLY user_tokens ALTER COLUMN id SET DEFAULT nextval('user_tokens_id_seq'::regclass);
1416 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1419 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1423 -- Name: acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1426 ALTER TABLE ONLY acls
1427 ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
1431 -- Name: changeset_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1434 ALTER TABLE ONLY changeset_comments
1435 ADD CONSTRAINT changeset_comments_pkey PRIMARY KEY (id);
1439 -- Name: changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1442 ALTER TABLE ONLY changesets
1443 ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
1447 -- Name: client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1450 ALTER TABLE ONLY client_applications
1451 ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
1455 -- Name: current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1458 ALTER TABLE ONLY current_node_tags
1459 ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
1463 -- Name: current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -
1466 ALTER TABLE ONLY current_nodes
1467 ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
1471 -- Name: current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1474 ALTER TABLE ONLY current_relation_members
1475 ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, member_type, member_id, member_role, sequence_id);
1479 -- Name: current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1482 ALTER TABLE ONLY current_relation_tags
1483 ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
1487 -- Name: current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1490 ALTER TABLE ONLY current_relations
1491 ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
1495 -- Name: current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1498 ALTER TABLE ONLY current_way_nodes
1499 ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
1503 -- Name: current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1506 ALTER TABLE ONLY current_way_tags
1507 ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
1511 -- Name: current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1514 ALTER TABLE ONLY current_ways
1515 ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
1519 -- Name: diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1522 ALTER TABLE ONLY diary_comments
1523 ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
1527 -- Name: diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1530 ALTER TABLE ONLY diary_entries
1531 ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
1535 -- Name: friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1538 ALTER TABLE ONLY friends
1539 ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
1543 -- Name: gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1546 ALTER TABLE ONLY gpx_file_tags
1547 ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
1551 -- Name: gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1554 ALTER TABLE ONLY gpx_files
1555 ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
1559 -- Name: issues_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1562 ALTER TABLE ONLY issues
1563 ADD CONSTRAINT issues_pkey PRIMARY KEY (id);
1567 -- Name: languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1570 ALTER TABLE ONLY languages
1571 ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
1575 -- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1578 ALTER TABLE ONLY messages
1579 ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
1583 -- Name: node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1586 ALTER TABLE ONLY node_tags
1587 ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
1591 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1594 ALTER TABLE ONLY nodes
1595 ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
1599 -- Name: note_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1602 ALTER TABLE ONLY note_comments
1603 ADD CONSTRAINT note_comments_pkey PRIMARY KEY (id);
1607 -- Name: notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1610 ALTER TABLE ONLY notes
1611 ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
1615 -- Name: oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1618 ALTER TABLE ONLY oauth_nonces
1619 ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
1623 -- Name: oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1626 ALTER TABLE ONLY oauth_tokens
1627 ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
1631 -- Name: redactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1634 ALTER TABLE ONLY redactions
1635 ADD CONSTRAINT redactions_pkey PRIMARY KEY (id);
1639 -- Name: relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1642 ALTER TABLE ONLY relation_members
1643 ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, member_type, member_id, member_role, sequence_id);
1647 -- Name: relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1650 ALTER TABLE ONLY relation_tags
1651 ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
1655 -- Name: relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1658 ALTER TABLE ONLY relations
1659 ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
1663 -- Name: reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1666 ALTER TABLE ONLY reports
1667 ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
1671 -- Name: user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1674 ALTER TABLE ONLY user_blocks
1675 ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
1679 -- Name: user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1682 ALTER TABLE ONLY user_preferences
1683 ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
1687 -- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1690 ALTER TABLE ONLY user_roles
1691 ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
1695 -- Name: user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1698 ALTER TABLE ONLY user_tokens
1699 ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
1703 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1706 ALTER TABLE ONLY users
1707 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1711 -- Name: way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1714 ALTER TABLE ONLY way_nodes
1715 ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
1719 -- Name: way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1722 ALTER TABLE ONLY way_tags
1723 ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
1727 -- Name: ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1730 ALTER TABLE ONLY ways
1731 ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
1735 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -
1738 CREATE INDEX acls_k_idx ON acls USING btree (k);
1742 -- Name: changeset_tags_id_idx; Type: INDEX; Schema: public; Owner: -
1745 CREATE INDEX changeset_tags_id_idx ON changeset_tags USING btree (changeset_id);
1749 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -
1752 CREATE INDEX changesets_bbox_idx ON changesets USING gist (min_lat, max_lat, min_lon, max_lon);
1756 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -
1759 CREATE INDEX changesets_closed_at_idx ON changesets USING btree (closed_at);
1763 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -
1766 CREATE INDEX changesets_created_at_idx ON changesets USING btree (created_at);
1770 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -
1773 CREATE INDEX changesets_user_id_created_at_idx ON changesets USING btree (user_id, created_at);
1777 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -
1780 CREATE INDEX changesets_user_id_id_idx ON changesets USING btree (user_id, id);
1784 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1787 CREATE INDEX current_nodes_tile_idx ON current_nodes USING btree (tile);
1791 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1794 CREATE INDEX current_nodes_timestamp_idx ON current_nodes USING btree ("timestamp");
1798 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
1801 CREATE INDEX current_relation_members_member_idx ON current_relation_members USING btree (member_type, member_id);
1805 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1808 CREATE INDEX current_relations_timestamp_idx ON current_relations USING btree ("timestamp");
1812 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
1815 CREATE INDEX current_way_nodes_node_idx ON current_way_nodes USING btree (node_id);
1819 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1822 CREATE INDEX current_ways_timestamp_idx ON current_ways USING btree ("timestamp");
1826 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1829 CREATE INDEX diary_comment_user_id_created_at_index ON diary_comments USING btree (user_id, created_at);
1833 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -
1836 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON diary_comments USING btree (diary_entry_id, id);
1840 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -
1843 CREATE INDEX diary_entry_created_at_index ON diary_entries USING btree (created_at);
1847 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -
1850 CREATE INDEX diary_entry_language_code_created_at_index ON diary_entries USING btree (language_code, created_at);
1854 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
1857 CREATE INDEX diary_entry_user_id_created_at_index ON diary_entries USING btree (user_id, created_at);
1861 -- Name: friends_user_id_idx; Type: INDEX; Schema: public; Owner: -
1864 CREATE INDEX friends_user_id_idx ON friends USING btree (user_id);
1868 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -
1871 CREATE INDEX gpx_file_tags_gpxid_idx ON gpx_file_tags USING btree (gpx_id);
1875 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -
1878 CREATE INDEX gpx_file_tags_tag_idx ON gpx_file_tags USING btree (tag);
1882 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1885 CREATE INDEX gpx_files_timestamp_idx ON gpx_files USING btree ("timestamp");
1889 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -
1892 CREATE INDEX gpx_files_user_id_idx ON gpx_files USING btree (user_id);
1896 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -
1899 CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible, visibility);
1903 -- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1906 CREATE INDEX index_changeset_comments_on_created_at ON changeset_comments USING btree (created_at);
1910 -- Name: index_changesets_subscribers_on_changeset_id; Type: INDEX; Schema: public; Owner: -
1913 CREATE INDEX index_changesets_subscribers_on_changeset_id ON changesets_subscribers USING btree (changeset_id);
1917 -- Name: index_changesets_subscribers_on_subscriber_id_and_changeset_id; Type: INDEX; Schema: public; Owner: -
1920 CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_id ON changesets_subscribers USING btree (subscriber_id, changeset_id);
1924 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -
1927 CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
1931 -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
1934 CREATE INDEX index_note_comments_on_body ON note_comments USING gin (to_tsvector('english'::regconfig, body));
1938 -- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
1941 CREATE INDEX index_note_comments_on_created_at ON note_comments USING btree (created_at);
1945 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -
1948 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces USING btree (nonce, "timestamp");
1952 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -
1955 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token);
1959 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
1962 CREATE INDEX index_user_blocks_on_user_id ON user_blocks USING btree (user_id);
1966 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -
1969 CREATE INDEX messages_from_user_id_idx ON messages USING btree (from_user_id);
1973 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -
1976 CREATE INDEX messages_to_user_id_idx ON messages USING btree (to_user_id);
1980 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
1983 CREATE INDEX nodes_changeset_id_idx ON nodes USING btree (changeset_id);
1987 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
1990 CREATE INDEX nodes_tile_idx ON nodes USING btree (tile);
1994 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
1997 CREATE INDEX nodes_timestamp_idx ON nodes USING btree ("timestamp");
2001 -- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -
2004 CREATE INDEX note_comments_note_id_idx ON note_comments USING btree (note_id);
2008 -- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -
2011 CREATE INDEX notes_created_at_idx ON notes USING btree (created_at);
2015 -- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -
2018 CREATE INDEX notes_tile_status_idx ON notes USING btree (tile, status);
2022 -- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -
2025 CREATE INDEX notes_updated_at_idx ON notes USING btree (updated_at);
2029 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -
2032 CREATE INDEX points_gpxid_idx ON gps_points USING btree (gpx_id);
2036 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -
2039 CREATE INDEX points_tile_idx ON gps_points USING btree (tile);
2043 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
2046 CREATE INDEX relation_members_member_idx ON relation_members USING btree (member_type, member_id);
2050 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2053 CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
2057 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2060 CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
2064 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2067 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2071 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -
2074 CREATE INDEX user_id_idx ON friends USING btree (friend_user_id);
2078 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -
2081 CREATE UNIQUE INDEX user_roles_id_role_unique ON user_roles USING btree (user_id, role);
2085 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -
2088 CREATE UNIQUE INDEX user_tokens_token_idx ON user_tokens USING btree (token);
2092 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -
2095 CREATE INDEX user_tokens_user_id_idx ON user_tokens USING btree (user_id);
2099 -- Name: users_auth_idx; Type: INDEX; Schema: public; Owner: -
2102 CREATE UNIQUE INDEX users_auth_idx ON users USING btree (auth_provider, auth_uid);
2106 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -
2109 CREATE UNIQUE INDEX users_display_name_idx ON users USING btree (display_name);
2113 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -
2116 CREATE INDEX users_display_name_lower_idx ON users USING btree (lower((display_name)::text));
2120 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
2123 CREATE UNIQUE INDEX users_email_idx ON users USING btree (email);
2127 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -
2130 CREATE INDEX users_email_lower_idx ON users USING btree (lower((email)::text));
2134 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
2137 CREATE INDEX way_nodes_node_idx ON way_nodes USING btree (node_id);
2141 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2144 CREATE INDEX ways_changeset_id_idx ON ways USING btree (changeset_id);
2148 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2151 CREATE INDEX ways_timestamp_idx ON ways USING btree ("timestamp");
2155 -- Name: changeset_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2158 ALTER TABLE ONLY changeset_comments
2159 ADD CONSTRAINT changeset_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2163 -- Name: changeset_comments_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2166 ALTER TABLE ONLY changeset_comments
2167 ADD CONSTRAINT changeset_comments_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2171 -- Name: changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2174 ALTER TABLE ONLY changeset_tags
2175 ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2179 -- Name: changesets_subscribers_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2182 ALTER TABLE ONLY changesets_subscribers
2183 ADD CONSTRAINT changesets_subscribers_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2187 -- Name: changesets_subscribers_subscriber_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2190 ALTER TABLE ONLY changesets_subscribers
2191 ADD CONSTRAINT changesets_subscribers_subscriber_id_fkey FOREIGN KEY (subscriber_id) REFERENCES users(id);
2195 -- Name: changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2198 ALTER TABLE ONLY changesets
2199 ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2203 -- Name: client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2206 ALTER TABLE ONLY client_applications
2207 ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2211 -- Name: current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2214 ALTER TABLE ONLY current_node_tags
2215 ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2219 -- Name: current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2222 ALTER TABLE ONLY current_nodes
2223 ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2227 -- Name: current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2230 ALTER TABLE ONLY current_relation_members
2231 ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2235 -- Name: current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2238 ALTER TABLE ONLY current_relation_tags
2239 ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2243 -- Name: current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2246 ALTER TABLE ONLY current_relations
2247 ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2251 -- Name: current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2254 ALTER TABLE ONLY current_way_nodes
2255 ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2259 -- Name: current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2262 ALTER TABLE ONLY current_way_nodes
2263 ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2267 -- Name: current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2270 ALTER TABLE ONLY current_way_tags
2271 ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2275 -- Name: current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2278 ALTER TABLE ONLY current_ways
2279 ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2283 -- Name: diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2286 ALTER TABLE ONLY diary_comments
2287 ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2291 -- Name: diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2294 ALTER TABLE ONLY diary_comments
2295 ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2299 -- Name: diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2302 ALTER TABLE ONLY diary_entries
2303 ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES languages(code);
2307 -- Name: diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2310 ALTER TABLE ONLY diary_entries
2311 ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2315 -- Name: friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2318 ALTER TABLE ONLY friends
2319 ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES users(id);
2323 -- Name: friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2326 ALTER TABLE ONLY friends
2327 ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2331 -- Name: gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2334 ALTER TABLE ONLY gps_points
2335 ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2339 -- Name: gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2342 ALTER TABLE ONLY gpx_file_tags
2343 ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2347 -- Name: gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2350 ALTER TABLE ONLY gpx_files
2351 ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2355 -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2358 ALTER TABLE ONLY messages
2359 ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES users(id);
2363 -- Name: messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2366 ALTER TABLE ONLY messages
2367 ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES users(id);
2371 -- Name: node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2374 ALTER TABLE ONLY node_tags
2375 ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES nodes(node_id, version);
2379 -- Name: nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2382 ALTER TABLE ONLY nodes
2383 ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2387 -- Name: nodes_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2390 ALTER TABLE ONLY nodes
2391 ADD CONSTRAINT nodes_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2395 -- Name: note_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2398 ALTER TABLE ONLY note_comments
2399 ADD CONSTRAINT note_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2403 -- Name: note_comments_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2406 ALTER TABLE ONLY note_comments
2407 ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES notes(id);
2411 -- Name: oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2414 ALTER TABLE ONLY oauth_tokens
2415 ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES client_applications(id);
2419 -- Name: oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2422 ALTER TABLE ONLY oauth_tokens
2423 ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2427 -- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2430 ALTER TABLE ONLY redactions
2431 ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2435 -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2438 ALTER TABLE ONLY relation_members
2439 ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2443 -- Name: relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2446 ALTER TABLE ONLY relation_tags
2447 ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2451 -- Name: relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2454 ALTER TABLE ONLY relations
2455 ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2459 -- Name: relations_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2462 ALTER TABLE ONLY relations
2463 ADD CONSTRAINT relations_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2467 -- Name: user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2470 ALTER TABLE ONLY user_blocks
2471 ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES users(id);
2475 -- Name: user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2478 ALTER TABLE ONLY user_blocks
2479 ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES users(id);
2483 -- Name: user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2486 ALTER TABLE ONLY user_blocks
2487 ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2491 -- Name: user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2494 ALTER TABLE ONLY user_preferences
2495 ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2499 -- Name: user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2502 ALTER TABLE ONLY user_roles
2503 ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES users(id);
2507 -- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2510 ALTER TABLE ONLY user_roles
2511 ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2515 -- Name: user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2518 ALTER TABLE ONLY user_tokens
2519 ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2523 -- Name: way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2526 ALTER TABLE ONLY way_nodes
2527 ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2531 -- Name: way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2534 ALTER TABLE ONLY way_tags
2535 ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2539 -- Name: ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2542 ALTER TABLE ONLY ways
2543 ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2547 -- Name: ways_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2550 ALTER TABLE ONLY ways
2551 ADD CONSTRAINT ways_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2555 -- PostgreSQL database dump complete
2558 SET search_path TO "$user", public;
2560 INSERT INTO schema_migrations (version) VALUES ('1');
2562 INSERT INTO schema_migrations (version) VALUES ('10');
2564 INSERT INTO schema_migrations (version) VALUES ('11');
2566 INSERT INTO schema_migrations (version) VALUES ('12');
2568 INSERT INTO schema_migrations (version) VALUES ('13');
2570 INSERT INTO schema_migrations (version) VALUES ('14');
2572 INSERT INTO schema_migrations (version) VALUES ('15');
2574 INSERT INTO schema_migrations (version) VALUES ('16');
2576 INSERT INTO schema_migrations (version) VALUES ('17');
2578 INSERT INTO schema_migrations (version) VALUES ('18');
2580 INSERT INTO schema_migrations (version) VALUES ('19');
2582 INSERT INTO schema_migrations (version) VALUES ('2');
2584 INSERT INTO schema_migrations (version) VALUES ('20');
2586 INSERT INTO schema_migrations (version) VALUES ('20100513171259');
2588 INSERT INTO schema_migrations (version) VALUES ('20100516124737');
2590 INSERT INTO schema_migrations (version) VALUES ('20100910084426');
2592 INSERT INTO schema_migrations (version) VALUES ('20101114011429');
2594 INSERT INTO schema_migrations (version) VALUES ('20110322001319');
2596 INSERT INTO schema_migrations (version) VALUES ('20110508145337');
2598 INSERT INTO schema_migrations (version) VALUES ('20110521142405');
2600 INSERT INTO schema_migrations (version) VALUES ('20110925112722');
2602 INSERT INTO schema_migrations (version) VALUES ('20111116184519');
2604 INSERT INTO schema_migrations (version) VALUES ('20111212183945');
2606 INSERT INTO schema_migrations (version) VALUES ('20120123184321');
2608 INSERT INTO schema_migrations (version) VALUES ('20120208122334');
2610 INSERT INTO schema_migrations (version) VALUES ('20120208194454');
2612 INSERT INTO schema_migrations (version) VALUES ('20120214210114');
2614 INSERT INTO schema_migrations (version) VALUES ('20120219161649');
2616 INSERT INTO schema_migrations (version) VALUES ('20120318201948');
2618 INSERT INTO schema_migrations (version) VALUES ('20120328090602');
2620 INSERT INTO schema_migrations (version) VALUES ('20120404205604');
2622 INSERT INTO schema_migrations (version) VALUES ('20120808231205');
2624 INSERT INTO schema_migrations (version) VALUES ('20121005195010');
2626 INSERT INTO schema_migrations (version) VALUES ('20121012044047');
2628 INSERT INTO schema_migrations (version) VALUES ('20121119165817');
2630 INSERT INTO schema_migrations (version) VALUES ('20121202155309');
2632 INSERT INTO schema_migrations (version) VALUES ('20121203124841');
2634 INSERT INTO schema_migrations (version) VALUES ('20130328184137');
2636 INSERT INTO schema_migrations (version) VALUES ('20131029121300');
2638 INSERT INTO schema_migrations (version) VALUES ('20131212124700');
2640 INSERT INTO schema_migrations (version) VALUES ('20140115192822');
2642 INSERT INTO schema_migrations (version) VALUES ('20140117185510');
2644 INSERT INTO schema_migrations (version) VALUES ('20140210003018');
2646 INSERT INTO schema_migrations (version) VALUES ('20140507110937');
2648 INSERT INTO schema_migrations (version) VALUES ('20140519141742');
2650 INSERT INTO schema_migrations (version) VALUES ('20150110152606');
2652 INSERT INTO schema_migrations (version) VALUES ('20150111192335');
2654 INSERT INTO schema_migrations (version) VALUES ('20150222101847');
2656 INSERT INTO schema_migrations (version) VALUES ('20150516073616');
2658 INSERT INTO schema_migrations (version) VALUES ('20150516075620');
2660 INSERT INTO schema_migrations (version) VALUES ('21');
2662 INSERT INTO schema_migrations (version) VALUES ('22');
2664 INSERT INTO schema_migrations (version) VALUES ('23');
2666 INSERT INTO schema_migrations (version) VALUES ('24');
2668 INSERT INTO schema_migrations (version) VALUES ('25');
2670 INSERT INTO schema_migrations (version) VALUES ('26');
2672 INSERT INTO schema_migrations (version) VALUES ('27');
2674 INSERT INTO schema_migrations (version) VALUES ('28');
2676 INSERT INTO schema_migrations (version) VALUES ('29');
2678 INSERT INTO schema_migrations (version) VALUES ('3');
2680 INSERT INTO schema_migrations (version) VALUES ('30');
2682 INSERT INTO schema_migrations (version) VALUES ('31');
2684 INSERT INTO schema_migrations (version) VALUES ('32');
2686 INSERT INTO schema_migrations (version) VALUES ('33');
2688 INSERT INTO schema_migrations (version) VALUES ('34');
2690 INSERT INTO schema_migrations (version) VALUES ('35');
2692 INSERT INTO schema_migrations (version) VALUES ('36');
2694 INSERT INTO schema_migrations (version) VALUES ('37');
2696 INSERT INTO schema_migrations (version) VALUES ('38');
2698 INSERT INTO schema_migrations (version) VALUES ('39');
2700 INSERT INTO schema_migrations (version) VALUES ('4');
2702 INSERT INTO schema_migrations (version) VALUES ('40');
2704 INSERT INTO schema_migrations (version) VALUES ('41');
2706 INSERT INTO schema_migrations (version) VALUES ('42');
2708 INSERT INTO schema_migrations (version) VALUES ('43');
2710 INSERT INTO schema_migrations (version) VALUES ('44');
2712 INSERT INTO schema_migrations (version) VALUES ('45');
2714 INSERT INTO schema_migrations (version) VALUES ('46');
2716 INSERT INTO schema_migrations (version) VALUES ('47');
2718 INSERT INTO schema_migrations (version) VALUES ('48');
2720 INSERT INTO schema_migrations (version) VALUES ('49');
2722 INSERT INTO schema_migrations (version) VALUES ('5');
2724 INSERT INTO schema_migrations (version) VALUES ('50');
2726 INSERT INTO schema_migrations (version) VALUES ('51');
2728 INSERT INTO schema_migrations (version) VALUES ('52');
2730 INSERT INTO schema_migrations (version) VALUES ('53');
2732 INSERT INTO schema_migrations (version) VALUES ('54');
2734 INSERT INTO schema_migrations (version) VALUES ('55');
2736 INSERT INTO schema_migrations (version) VALUES ('56');
2738 INSERT INTO schema_migrations (version) VALUES ('57');
2740 INSERT INTO schema_migrations (version) VALUES ('6');
2742 INSERT INTO schema_migrations (version) VALUES ('7');
2744 INSERT INTO schema_migrations (version) VALUES ('8');
2746 INSERT INTO schema_migrations (version) VALUES ('9');