2 -- PostgreSQL database dump
5 SET statement_timeout = 0;
7 SET client_encoding = 'UTF8';
8 SET standard_conforming_strings = on;
9 SET check_function_bodies = false;
10 SET client_min_messages = warning;
13 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
16 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
20 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
23 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
27 -- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
30 CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public;
34 -- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: -
37 COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST';
40 SET search_path = public, pg_catalog;
43 -- Name: format_enum; Type: TYPE; Schema: public; Owner: -
46 CREATE TYPE format_enum AS ENUM (
53 -- Name: gpx_visibility_enum; Type: TYPE; Schema: public; Owner: -
56 CREATE TYPE gpx_visibility_enum AS ENUM (
65 -- Name: note_event_enum; Type: TYPE; Schema: public; Owner: -
68 CREATE TYPE note_event_enum AS ENUM (
78 -- Name: note_status_enum; Type: TYPE; Schema: public; Owner: -
81 CREATE TYPE note_status_enum AS ENUM (
89 -- Name: nwr_enum; Type: TYPE; Schema: public; Owner: -
92 CREATE TYPE nwr_enum AS ENUM (
100 -- Name: user_role_enum; Type: TYPE; Schema: public; Owner: -
103 CREATE TYPE user_role_enum AS ENUM (
110 -- Name: user_status_enum; Type: TYPE; Schema: public; Owner: -
113 CREATE TYPE user_status_enum AS ENUM (
123 -- Name: maptile_for_point(bigint, bigint, integer); Type: FUNCTION; Schema: public; Owner: -
126 CREATE FUNCTION maptile_for_point(bigint, bigint, integer) RETURNS integer
128 AS '/srv/www/next.osm.compton.nu/db/functions/libpgosm.so', 'maptile_for_point';
132 -- Name: tile_for_point(integer, integer); Type: FUNCTION; Schema: public; Owner: -
135 CREATE FUNCTION tile_for_point(integer, integer) RETURNS bigint
137 AS '/srv/www/next.osm.compton.nu/db/functions/libpgosm.so', 'tile_for_point';
141 -- Name: xid_to_int4(xid); Type: FUNCTION; Schema: public; Owner: -
144 CREATE FUNCTION xid_to_int4(xid) RETURNS integer
145 LANGUAGE c IMMUTABLE STRICT
146 AS '/srv/www/next.osm.compton.nu/db/functions/libpgosm.so', 'xid_to_int4';
149 SET default_tablespace = '';
151 SET default_with_oids = false;
154 -- Name: acls; Type: TABLE; Schema: public; Owner: -; Tablespace:
160 k character varying(255) NOT NULL,
161 v character varying(255),
162 domain character varying(255)
167 -- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
170 CREATE SEQUENCE acls_id_seq
179 -- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
182 ALTER SEQUENCE acls_id_seq OWNED BY acls.id;
186 -- Name: changeset_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
189 CREATE TABLE changeset_comments (
191 changeset_id bigint NOT NULL,
192 author_id bigint NOT NULL,
194 created_at timestamp without time zone NOT NULL,
195 visible boolean NOT NULL
200 -- Name: changeset_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
203 CREATE SEQUENCE changeset_comments_id_seq
212 -- Name: changeset_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
215 ALTER SEQUENCE changeset_comments_id_seq OWNED BY changeset_comments.id;
219 -- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
222 CREATE TABLE changeset_tags (
223 changeset_id bigint NOT NULL,
224 k character varying(255) DEFAULT ''::character varying NOT NULL,
225 v character varying(255) DEFAULT ''::character varying NOT NULL
230 -- Name: changesets; Type: TABLE; Schema: public; Owner: -; Tablespace:
233 CREATE TABLE changesets (
235 user_id bigint NOT NULL,
236 created_at timestamp without time zone NOT NULL,
241 closed_at timestamp without time zone NOT NULL,
242 num_changes integer DEFAULT 0 NOT NULL
247 -- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
250 CREATE SEQUENCE changesets_id_seq
259 -- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
262 ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
266 -- Name: changesets_subscribers; Type: TABLE; Schema: public; Owner: -; Tablespace:
269 CREATE TABLE changesets_subscribers (
270 subscriber_id bigint NOT NULL,
271 changeset_id bigint NOT NULL
276 -- Name: client_applications; Type: TABLE; Schema: public; Owner: -; Tablespace:
279 CREATE TABLE client_applications (
281 name character varying(255),
282 url character varying(255),
283 support_url character varying(255),
284 callback_url character varying(255),
285 key character varying(50),
286 secret character varying(50),
288 created_at timestamp without time zone,
289 updated_at timestamp without time zone,
290 allow_read_prefs boolean DEFAULT false NOT NULL,
291 allow_write_prefs boolean DEFAULT false NOT NULL,
292 allow_write_diary boolean DEFAULT false NOT NULL,
293 allow_write_api boolean DEFAULT false NOT NULL,
294 allow_read_gpx boolean DEFAULT false NOT NULL,
295 allow_write_gpx boolean DEFAULT false NOT NULL,
296 allow_write_notes boolean DEFAULT false NOT NULL
301 -- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
304 CREATE SEQUENCE client_applications_id_seq
313 -- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
316 ALTER SEQUENCE client_applications_id_seq OWNED BY client_applications.id;
320 -- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
323 CREATE TABLE current_node_tags (
324 node_id bigint NOT NULL,
325 k character varying(255) DEFAULT ''::character varying NOT NULL,
326 v character varying(255) DEFAULT ''::character varying NOT NULL
331 -- Name: current_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
334 CREATE TABLE current_nodes (
336 latitude integer NOT NULL,
337 longitude integer NOT NULL,
338 changeset_id bigint NOT NULL,
339 visible boolean NOT NULL,
340 "timestamp" timestamp without time zone NOT NULL,
341 tile bigint NOT NULL,
342 version bigint NOT NULL
347 -- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
350 CREATE SEQUENCE current_nodes_id_seq
359 -- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
362 ALTER SEQUENCE current_nodes_id_seq OWNED BY current_nodes.id;
366 -- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
369 CREATE TABLE current_relation_members (
370 relation_id bigint NOT NULL,
371 member_type nwr_enum NOT NULL,
372 member_id bigint NOT NULL,
373 member_role character varying(255) NOT NULL,
374 sequence_id integer DEFAULT 0 NOT NULL
379 -- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
382 CREATE TABLE current_relation_tags (
383 relation_id bigint NOT NULL,
384 k character varying(255) DEFAULT ''::character varying NOT NULL,
385 v character varying(255) DEFAULT ''::character varying NOT NULL
390 -- Name: current_relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
393 CREATE TABLE current_relations (
395 changeset_id bigint NOT NULL,
396 "timestamp" timestamp without time zone NOT NULL,
397 visible boolean NOT NULL,
398 version bigint NOT NULL
403 -- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
406 CREATE SEQUENCE current_relations_id_seq
415 -- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
418 ALTER SEQUENCE current_relations_id_seq OWNED BY current_relations.id;
422 -- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
425 CREATE TABLE current_way_nodes (
426 way_id bigint NOT NULL,
427 node_id bigint NOT NULL,
428 sequence_id bigint NOT NULL
433 -- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
436 CREATE TABLE current_way_tags (
437 way_id bigint NOT NULL,
438 k character varying(255) DEFAULT ''::character varying NOT NULL,
439 v character varying(255) DEFAULT ''::character varying NOT NULL
444 -- Name: current_ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
447 CREATE TABLE current_ways (
449 changeset_id bigint NOT NULL,
450 "timestamp" timestamp without time zone NOT NULL,
451 visible boolean NOT NULL,
452 version bigint NOT NULL
457 -- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
460 CREATE SEQUENCE current_ways_id_seq
469 -- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
472 ALTER SEQUENCE current_ways_id_seq OWNED BY current_ways.id;
476 -- Name: diary_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
479 CREATE TABLE diary_comments (
481 diary_entry_id bigint NOT NULL,
482 user_id bigint NOT NULL,
484 created_at timestamp without time zone NOT NULL,
485 updated_at timestamp without time zone NOT NULL,
486 visible boolean DEFAULT true NOT NULL,
487 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
492 -- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
495 CREATE SEQUENCE diary_comments_id_seq
504 -- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
507 ALTER SEQUENCE diary_comments_id_seq OWNED BY diary_comments.id;
511 -- Name: diary_entries; Type: TABLE; Schema: public; Owner: -; Tablespace:
514 CREATE TABLE diary_entries (
516 user_id bigint NOT NULL,
517 title character varying(255) NOT NULL,
519 created_at timestamp without time zone NOT NULL,
520 updated_at timestamp without time zone NOT NULL,
521 latitude double precision,
522 longitude double precision,
523 language_code character varying(255) DEFAULT 'en'::character varying NOT NULL,
524 visible boolean DEFAULT true NOT NULL,
525 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
530 -- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
533 CREATE SEQUENCE diary_entries_id_seq
542 -- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
545 ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id;
549 -- Name: friends; Type: TABLE; Schema: public; Owner: -; Tablespace:
552 CREATE TABLE friends (
554 user_id bigint NOT NULL,
555 friend_user_id bigint NOT NULL
560 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
563 CREATE SEQUENCE friends_id_seq
572 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
575 ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
579 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -; Tablespace:
582 CREATE TABLE gps_points (
583 altitude double precision,
584 trackid integer NOT NULL,
585 latitude integer NOT NULL,
586 longitude integer NOT NULL,
587 gpx_id bigint NOT NULL,
588 "timestamp" timestamp without time zone,
594 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
597 CREATE TABLE gpx_file_tags (
598 gpx_id bigint DEFAULT 0 NOT NULL,
599 tag character varying(255) NOT NULL,
605 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
608 CREATE SEQUENCE gpx_file_tags_id_seq
617 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
620 ALTER SEQUENCE gpx_file_tags_id_seq OWNED BY gpx_file_tags.id;
624 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -; Tablespace:
627 CREATE TABLE gpx_files (
629 user_id bigint NOT NULL,
630 visible boolean DEFAULT true NOT NULL,
631 name character varying(255) DEFAULT ''::character varying NOT NULL,
633 latitude double precision,
634 longitude double precision,
635 "timestamp" timestamp without time zone NOT NULL,
636 description character varying(255) DEFAULT ''::character varying NOT NULL,
637 inserted boolean NOT NULL,
638 visibility gpx_visibility_enum DEFAULT 'public'::gpx_visibility_enum NOT NULL
643 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
646 CREATE SEQUENCE gpx_files_id_seq
655 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
658 ALTER SEQUENCE gpx_files_id_seq OWNED BY gpx_files.id;
662 -- Name: languages; Type: TABLE; Schema: public; Owner: -; Tablespace:
665 CREATE TABLE languages (
666 code character varying(255) NOT NULL,
667 english_name character varying(255) NOT NULL,
668 native_name character varying(255)
673 -- Name: messages; Type: TABLE; Schema: public; Owner: -; Tablespace:
676 CREATE TABLE messages (
678 from_user_id bigint NOT NULL,
679 title character varying(255) NOT NULL,
681 sent_on timestamp without time zone NOT NULL,
682 message_read boolean DEFAULT false NOT NULL,
683 to_user_id bigint NOT NULL,
684 to_user_visible boolean DEFAULT true NOT NULL,
685 from_user_visible boolean DEFAULT true NOT NULL,
686 body_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
691 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
694 CREATE SEQUENCE messages_id_seq
703 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
706 ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
710 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
713 CREATE TABLE node_tags (
714 node_id bigint NOT NULL,
715 version bigint NOT NULL,
716 k character varying(255) DEFAULT ''::character varying NOT NULL,
717 v character varying(255) DEFAULT ''::character varying NOT NULL
722 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
726 node_id bigint NOT NULL,
727 latitude integer NOT NULL,
728 longitude integer NOT NULL,
729 changeset_id bigint NOT NULL,
730 visible boolean NOT NULL,
731 "timestamp" timestamp without time zone NOT NULL,
732 tile bigint NOT NULL,
733 version bigint NOT NULL,
739 -- Name: note_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
742 CREATE TABLE note_comments (
744 note_id bigint NOT NULL,
745 visible boolean NOT NULL,
746 created_at timestamp without time zone NOT NULL,
750 event note_event_enum
755 -- Name: note_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
758 CREATE SEQUENCE note_comments_id_seq
767 -- Name: note_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
770 ALTER SEQUENCE note_comments_id_seq OWNED BY note_comments.id;
774 -- Name: notes; Type: TABLE; Schema: public; Owner: -; Tablespace:
779 latitude integer NOT NULL,
780 longitude integer NOT NULL,
781 tile bigint NOT NULL,
782 updated_at timestamp without time zone NOT NULL,
783 created_at timestamp without time zone NOT NULL,
784 status note_status_enum NOT NULL,
785 closed_at timestamp without time zone
790 -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
793 CREATE SEQUENCE notes_id_seq
802 -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
805 ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
809 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -; Tablespace:
812 CREATE TABLE oauth_nonces (
814 nonce character varying(255),
816 created_at timestamp without time zone,
817 updated_at timestamp without time zone
822 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
825 CREATE SEQUENCE oauth_nonces_id_seq
834 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
837 ALTER SEQUENCE oauth_nonces_id_seq OWNED BY oauth_nonces.id;
841 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -; Tablespace:
844 CREATE TABLE oauth_tokens (
847 type character varying(20),
848 client_application_id integer,
849 token character varying(50),
850 secret character varying(50),
851 authorized_at timestamp without time zone,
852 invalidated_at timestamp without time zone,
853 created_at timestamp without time zone,
854 updated_at timestamp without time zone,
855 allow_read_prefs boolean DEFAULT false NOT NULL,
856 allow_write_prefs boolean DEFAULT false NOT NULL,
857 allow_write_diary boolean DEFAULT false NOT NULL,
858 allow_write_api boolean DEFAULT false NOT NULL,
859 allow_read_gpx boolean DEFAULT false NOT NULL,
860 allow_write_gpx boolean DEFAULT false NOT NULL,
861 callback_url character varying(255),
862 verifier character varying(20),
863 scope character varying(255),
864 valid_to timestamp without time zone,
865 allow_write_notes boolean DEFAULT false NOT NULL
870 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
873 CREATE SEQUENCE oauth_tokens_id_seq
882 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
885 ALTER SEQUENCE oauth_tokens_id_seq OWNED BY oauth_tokens.id;
889 -- Name: redactions; Type: TABLE; Schema: public; Owner: -; Tablespace:
892 CREATE TABLE redactions (
894 title character varying(255),
896 created_at timestamp without time zone NOT NULL,
897 updated_at timestamp without time zone NOT NULL,
898 user_id bigint NOT NULL,
899 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
904 -- Name: redactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
907 CREATE SEQUENCE redactions_id_seq
916 -- Name: redactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
919 ALTER SEQUENCE redactions_id_seq OWNED BY redactions.id;
923 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
926 CREATE TABLE relation_members (
927 relation_id bigint DEFAULT 0 NOT NULL,
928 member_type nwr_enum NOT NULL,
929 member_id bigint NOT NULL,
930 member_role character varying(255) NOT NULL,
931 version bigint DEFAULT 0 NOT NULL,
932 sequence_id integer DEFAULT 0 NOT NULL
937 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
940 CREATE TABLE relation_tags (
941 relation_id bigint DEFAULT 0 NOT NULL,
942 k character varying(255) DEFAULT ''::character varying NOT NULL,
943 v character varying(255) DEFAULT ''::character varying NOT NULL,
944 version bigint NOT NULL
949 -- Name: relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
952 CREATE TABLE relations (
953 relation_id bigint DEFAULT 0 NOT NULL,
954 changeset_id bigint NOT NULL,
955 "timestamp" timestamp without time zone NOT NULL,
956 version bigint NOT NULL,
957 visible boolean DEFAULT true NOT NULL,
963 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
966 CREATE TABLE schema_migrations (
967 version character varying(255) NOT NULL
972 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -; Tablespace:
975 CREATE TABLE user_blocks (
977 user_id bigint NOT NULL,
978 creator_id bigint NOT NULL,
979 reason text NOT NULL,
980 ends_at timestamp without time zone NOT NULL,
981 needs_view boolean DEFAULT false NOT NULL,
983 created_at timestamp without time zone,
984 updated_at timestamp without time zone,
985 reason_format format_enum DEFAULT 'markdown'::format_enum NOT NULL
990 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
993 CREATE SEQUENCE user_blocks_id_seq
1002 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1005 ALTER SEQUENCE user_blocks_id_seq OWNED BY user_blocks.id;
1009 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -; Tablespace:
1012 CREATE TABLE user_preferences (
1013 user_id bigint NOT NULL,
1014 k character varying(255) NOT NULL,
1015 v character varying(255) NOT NULL
1020 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -; Tablespace:
1023 CREATE TABLE user_roles (
1024 id integer NOT NULL,
1025 user_id bigint NOT NULL,
1026 created_at timestamp without time zone,
1027 updated_at timestamp without time zone,
1028 role user_role_enum NOT NULL,
1029 granter_id bigint NOT NULL
1034 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1037 CREATE SEQUENCE user_roles_id_seq
1046 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1049 ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id;
1053 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -; Tablespace:
1056 CREATE TABLE user_tokens (
1058 user_id bigint NOT NULL,
1059 token character varying(255) NOT NULL,
1060 expiry timestamp without time zone NOT NULL,
1066 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1069 CREATE SEQUENCE user_tokens_id_seq
1078 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1081 ALTER SEQUENCE user_tokens_id_seq OWNED BY user_tokens.id;
1085 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace:
1088 CREATE TABLE users (
1089 email character varying(255) NOT NULL,
1091 pass_crypt character varying(255) NOT NULL,
1092 creation_time timestamp without time zone NOT NULL,
1093 display_name character varying(255) DEFAULT ''::character varying NOT NULL,
1094 data_public boolean DEFAULT false NOT NULL,
1095 description text DEFAULT ''::text NOT NULL,
1096 home_lat double precision,
1097 home_lon double precision,
1098 home_zoom smallint DEFAULT 3,
1099 nearby integer DEFAULT 50,
1100 pass_salt character varying(255),
1101 image_file_name text,
1102 email_valid boolean DEFAULT false NOT NULL,
1103 new_email character varying(255),
1104 creation_ip character varying(255),
1105 languages character varying(255),
1106 status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
1107 terms_agreed timestamp without time zone,
1108 consider_pd boolean DEFAULT false NOT NULL,
1109 openid_url character varying(255),
1110 preferred_editor character varying(255),
1111 terms_seen boolean DEFAULT false NOT NULL,
1112 image_fingerprint character varying(255),
1113 description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL,
1114 changesets_count integer DEFAULT 0 NOT NULL,
1115 traces_count integer DEFAULT 0 NOT NULL,
1116 diary_entries_count integer DEFAULT 0 NOT NULL,
1117 image_use_gravatar boolean DEFAULT true NOT NULL,
1118 image_content_type character varying(255)
1123 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1126 CREATE SEQUENCE users_id_seq
1135 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1138 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1142 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
1145 CREATE TABLE way_nodes (
1146 way_id bigint NOT NULL,
1147 node_id bigint NOT NULL,
1148 version bigint NOT NULL,
1149 sequence_id bigint NOT NULL
1154 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
1157 CREATE TABLE way_tags (
1158 way_id bigint DEFAULT 0 NOT NULL,
1159 k character varying(255) NOT NULL,
1160 v character varying(255) NOT NULL,
1161 version bigint NOT NULL
1166 -- Name: ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
1170 way_id bigint DEFAULT 0 NOT NULL,
1171 changeset_id bigint NOT NULL,
1172 "timestamp" timestamp without time zone NOT NULL,
1173 version bigint NOT NULL,
1174 visible boolean DEFAULT true NOT NULL,
1175 redaction_id integer
1180 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1183 ALTER TABLE ONLY acls ALTER COLUMN id SET DEFAULT nextval('acls_id_seq'::regclass);
1187 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1190 ALTER TABLE ONLY changeset_comments ALTER COLUMN id SET DEFAULT nextval('changeset_comments_id_seq'::regclass);
1194 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1197 ALTER TABLE ONLY changesets ALTER COLUMN id SET DEFAULT nextval('changesets_id_seq'::regclass);
1201 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1204 ALTER TABLE ONLY client_applications ALTER COLUMN id SET DEFAULT nextval('client_applications_id_seq'::regclass);
1208 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1211 ALTER TABLE ONLY current_nodes ALTER COLUMN id SET DEFAULT nextval('current_nodes_id_seq'::regclass);
1215 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1218 ALTER TABLE ONLY current_relations ALTER COLUMN id SET DEFAULT nextval('current_relations_id_seq'::regclass);
1222 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1225 ALTER TABLE ONLY current_ways ALTER COLUMN id SET DEFAULT nextval('current_ways_id_seq'::regclass);
1229 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1232 ALTER TABLE ONLY diary_comments ALTER COLUMN id SET DEFAULT nextval('diary_comments_id_seq'::regclass);
1236 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1239 ALTER TABLE ONLY diary_entries ALTER COLUMN id SET DEFAULT nextval('diary_entries_id_seq'::regclass);
1243 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1246 ALTER TABLE ONLY friends ALTER COLUMN id SET DEFAULT nextval('friends_id_seq'::regclass);
1250 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1253 ALTER TABLE ONLY gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('gpx_file_tags_id_seq'::regclass);
1257 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1260 ALTER TABLE ONLY gpx_files ALTER COLUMN id SET DEFAULT nextval('gpx_files_id_seq'::regclass);
1264 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1267 ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
1271 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1274 ALTER TABLE ONLY note_comments ALTER COLUMN id SET DEFAULT nextval('note_comments_id_seq'::regclass);
1278 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1281 ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
1285 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1288 ALTER TABLE ONLY oauth_nonces ALTER COLUMN id SET DEFAULT nextval('oauth_nonces_id_seq'::regclass);
1292 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1295 ALTER TABLE ONLY oauth_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_tokens_id_seq'::regclass);
1299 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1302 ALTER TABLE ONLY redactions ALTER COLUMN id SET DEFAULT nextval('redactions_id_seq'::regclass);
1306 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1309 ALTER TABLE ONLY user_blocks ALTER COLUMN id SET DEFAULT nextval('user_blocks_id_seq'::regclass);
1313 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1316 ALTER TABLE ONLY user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass);
1320 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1323 ALTER TABLE ONLY user_tokens ALTER COLUMN id SET DEFAULT nextval('user_tokens_id_seq'::regclass);
1327 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1330 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1334 -- Name: acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1337 ALTER TABLE ONLY acls
1338 ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
1342 -- Name: changeset_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1345 ALTER TABLE ONLY changeset_comments
1346 ADD CONSTRAINT changeset_comments_pkey PRIMARY KEY (id);
1350 -- Name: changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1353 ALTER TABLE ONLY changesets
1354 ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
1358 -- Name: client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1361 ALTER TABLE ONLY client_applications
1362 ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
1366 -- Name: current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1369 ALTER TABLE ONLY current_node_tags
1370 ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
1374 -- Name: current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1377 ALTER TABLE ONLY current_nodes
1378 ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
1382 -- Name: current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1385 ALTER TABLE ONLY current_relation_members
1386 ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, member_type, member_id, member_role, sequence_id);
1390 -- Name: current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1393 ALTER TABLE ONLY current_relation_tags
1394 ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
1398 -- Name: current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1401 ALTER TABLE ONLY current_relations
1402 ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
1406 -- Name: current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1409 ALTER TABLE ONLY current_way_nodes
1410 ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
1414 -- Name: current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1417 ALTER TABLE ONLY current_way_tags
1418 ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
1422 -- Name: current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1425 ALTER TABLE ONLY current_ways
1426 ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
1430 -- Name: diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1433 ALTER TABLE ONLY diary_comments
1434 ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
1438 -- Name: diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1441 ALTER TABLE ONLY diary_entries
1442 ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
1446 -- Name: friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1449 ALTER TABLE ONLY friends
1450 ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
1454 -- Name: gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1457 ALTER TABLE ONLY gpx_file_tags
1458 ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
1462 -- Name: gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1465 ALTER TABLE ONLY gpx_files
1466 ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
1470 -- Name: languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1473 ALTER TABLE ONLY languages
1474 ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
1478 -- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1481 ALTER TABLE ONLY messages
1482 ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
1486 -- Name: node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1489 ALTER TABLE ONLY node_tags
1490 ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
1494 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1497 ALTER TABLE ONLY nodes
1498 ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
1502 -- Name: note_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1505 ALTER TABLE ONLY note_comments
1506 ADD CONSTRAINT note_comments_pkey PRIMARY KEY (id);
1510 -- Name: notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1513 ALTER TABLE ONLY notes
1514 ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
1518 -- Name: oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1521 ALTER TABLE ONLY oauth_nonces
1522 ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
1526 -- Name: oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1529 ALTER TABLE ONLY oauth_tokens
1530 ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
1534 -- Name: redactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1537 ALTER TABLE ONLY redactions
1538 ADD CONSTRAINT redactions_pkey PRIMARY KEY (id);
1542 -- Name: relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1545 ALTER TABLE ONLY relation_members
1546 ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, member_type, member_id, member_role, sequence_id);
1550 -- Name: relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1553 ALTER TABLE ONLY relation_tags
1554 ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
1558 -- Name: relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1561 ALTER TABLE ONLY relations
1562 ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
1566 -- Name: user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1569 ALTER TABLE ONLY user_blocks
1570 ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
1574 -- Name: user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1577 ALTER TABLE ONLY user_preferences
1578 ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
1582 -- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1585 ALTER TABLE ONLY user_roles
1586 ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
1590 -- Name: user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1593 ALTER TABLE ONLY user_tokens
1594 ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
1598 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1601 ALTER TABLE ONLY users
1602 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1606 -- Name: way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1609 ALTER TABLE ONLY way_nodes
1610 ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
1614 -- Name: way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1617 ALTER TABLE ONLY way_tags
1618 ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
1622 -- Name: ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
1625 ALTER TABLE ONLY ways
1626 ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
1630 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1633 CREATE INDEX acls_k_idx ON acls USING btree (k);
1637 -- Name: changeset_tags_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1640 CREATE INDEX changeset_tags_id_idx ON changeset_tags USING btree (changeset_id);
1644 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1647 CREATE INDEX changesets_bbox_idx ON changesets USING gist (min_lat, max_lat, min_lon, max_lon);
1651 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1654 CREATE INDEX changesets_closed_at_idx ON changesets USING btree (closed_at);
1658 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1661 CREATE INDEX changesets_created_at_idx ON changesets USING btree (created_at);
1665 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1668 CREATE INDEX changesets_user_id_created_at_idx ON changesets USING btree (user_id, created_at);
1672 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1675 CREATE INDEX changesets_user_id_id_idx ON changesets USING btree (user_id, id);
1679 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1682 CREATE INDEX current_nodes_tile_idx ON current_nodes USING btree (tile);
1686 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1689 CREATE INDEX current_nodes_timestamp_idx ON current_nodes USING btree ("timestamp");
1693 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1696 CREATE INDEX current_relation_members_member_idx ON current_relation_members USING btree (member_type, member_id);
1700 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1703 CREATE INDEX current_relations_timestamp_idx ON current_relations USING btree ("timestamp");
1707 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1710 CREATE INDEX current_way_nodes_node_idx ON current_way_nodes USING btree (node_id);
1714 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1717 CREATE INDEX current_ways_timestamp_idx ON current_ways USING btree ("timestamp");
1721 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
1724 CREATE INDEX diary_comment_user_id_created_at_index ON diary_comments USING btree (user_id, created_at);
1728 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1731 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON diary_comments USING btree (diary_entry_id, id);
1735 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
1738 CREATE INDEX diary_entry_created_at_index ON diary_entries USING btree (created_at);
1742 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
1745 CREATE INDEX diary_entry_language_code_created_at_index ON diary_entries USING btree (language_code, created_at);
1749 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
1752 CREATE INDEX diary_entry_user_id_created_at_index ON diary_entries USING btree (user_id, created_at);
1756 -- Name: friends_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1759 CREATE INDEX friends_user_id_idx ON friends USING btree (user_id);
1763 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1766 CREATE INDEX gpx_file_tags_gpxid_idx ON gpx_file_tags USING btree (gpx_id);
1770 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1773 CREATE INDEX gpx_file_tags_tag_idx ON gpx_file_tags USING btree (tag);
1777 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1780 CREATE INDEX gpx_files_timestamp_idx ON gpx_files USING btree ("timestamp");
1784 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1787 CREATE INDEX gpx_files_user_id_idx ON gpx_files USING btree (user_id);
1791 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1794 CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible, visibility);
1798 -- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
1801 CREATE INDEX index_changeset_comments_on_created_at ON changeset_comments USING btree (created_at);
1805 -- Name: index_changesets_subscribers_on_changeset_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
1808 CREATE INDEX index_changesets_subscribers_on_changeset_id ON changesets_subscribers USING btree (changeset_id);
1812 -- Name: index_changesets_subscribers_on_subscriber_id_and_changeset_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
1815 CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_id ON changesets_subscribers USING btree (subscriber_id, changeset_id);
1819 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -; Tablespace:
1822 CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
1826 -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -; Tablespace:
1829 CREATE INDEX index_note_comments_on_body ON note_comments USING gin (to_tsvector('english'::regconfig, body));
1833 -- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
1836 CREATE INDEX index_note_comments_on_created_at ON note_comments USING btree (created_at);
1840 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -; Tablespace:
1843 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON oauth_nonces USING btree (nonce, "timestamp");
1847 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -; Tablespace:
1850 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON oauth_tokens USING btree (token);
1854 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
1857 CREATE INDEX index_user_blocks_on_user_id ON user_blocks USING btree (user_id);
1861 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1864 CREATE INDEX messages_from_user_id_idx ON messages USING btree (from_user_id);
1868 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1871 CREATE INDEX messages_to_user_id_idx ON messages USING btree (to_user_id);
1875 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1878 CREATE INDEX nodes_changeset_id_idx ON nodes USING btree (changeset_id);
1882 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1885 CREATE INDEX nodes_tile_idx ON nodes USING btree (tile);
1889 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1892 CREATE INDEX nodes_timestamp_idx ON nodes USING btree ("timestamp");
1896 -- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1899 CREATE INDEX note_comments_note_id_idx ON note_comments USING btree (note_id);
1903 -- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1906 CREATE INDEX notes_created_at_idx ON notes USING btree (created_at);
1910 -- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1913 CREATE INDEX notes_tile_status_idx ON notes USING btree (tile, status);
1917 -- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1920 CREATE INDEX notes_updated_at_idx ON notes USING btree (updated_at);
1924 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1927 CREATE INDEX points_gpxid_idx ON gps_points USING btree (gpx_id);
1931 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1934 CREATE INDEX points_tile_idx ON gps_points USING btree (tile);
1938 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1941 CREATE INDEX relation_members_member_idx ON relation_members USING btree (member_type, member_id);
1945 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1948 CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
1952 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1955 CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
1959 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
1962 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
1966 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1969 CREATE INDEX user_id_idx ON friends USING btree (friend_user_id);
1973 -- Name: user_openid_url_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1976 CREATE UNIQUE INDEX user_openid_url_idx ON users USING btree (openid_url);
1980 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -; Tablespace:
1983 CREATE UNIQUE INDEX user_roles_id_role_unique ON user_roles USING btree (user_id, role);
1987 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1990 CREATE UNIQUE INDEX user_tokens_token_idx ON user_tokens USING btree (token);
1994 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
1997 CREATE INDEX user_tokens_user_id_idx ON user_tokens USING btree (user_id);
2001 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2004 CREATE UNIQUE INDEX users_display_name_idx ON users USING btree (display_name);
2008 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2011 CREATE INDEX users_display_name_lower_idx ON users USING btree (lower((display_name)::text));
2015 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2018 CREATE UNIQUE INDEX users_email_idx ON users USING btree (email);
2022 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2025 CREATE INDEX users_email_lower_idx ON users USING btree (lower((email)::text));
2029 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2032 CREATE INDEX way_nodes_node_idx ON way_nodes USING btree (node_id);
2036 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2039 CREATE INDEX ways_changeset_id_idx ON ways USING btree (changeset_id);
2043 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
2046 CREATE INDEX ways_timestamp_idx ON ways USING btree ("timestamp");
2050 -- Name: changeset_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2053 ALTER TABLE ONLY changeset_comments
2054 ADD CONSTRAINT changeset_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2058 -- Name: changeset_comments_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2061 ALTER TABLE ONLY changeset_comments
2062 ADD CONSTRAINT changeset_comments_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2066 -- Name: changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2069 ALTER TABLE ONLY changeset_tags
2070 ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2074 -- Name: changesets_subscribers_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2077 ALTER TABLE ONLY changesets_subscribers
2078 ADD CONSTRAINT changesets_subscribers_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2082 -- Name: changesets_subscribers_subscriber_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2085 ALTER TABLE ONLY changesets_subscribers
2086 ADD CONSTRAINT changesets_subscribers_subscriber_id_fkey FOREIGN KEY (subscriber_id) REFERENCES users(id);
2090 -- Name: changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2093 ALTER TABLE ONLY changesets
2094 ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2098 -- Name: client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2101 ALTER TABLE ONLY client_applications
2102 ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2106 -- Name: current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2109 ALTER TABLE ONLY current_node_tags
2110 ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2114 -- Name: current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2117 ALTER TABLE ONLY current_nodes
2118 ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2122 -- Name: current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2125 ALTER TABLE ONLY current_relation_members
2126 ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2130 -- Name: current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2133 ALTER TABLE ONLY current_relation_tags
2134 ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES current_relations(id);
2138 -- Name: current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2141 ALTER TABLE ONLY current_relations
2142 ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2146 -- Name: current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2149 ALTER TABLE ONLY current_way_nodes
2150 ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2154 -- Name: current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2157 ALTER TABLE ONLY current_way_nodes
2158 ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES current_nodes(id);
2162 -- Name: current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2165 ALTER TABLE ONLY current_way_tags
2166 ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES current_ways(id);
2170 -- Name: current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2173 ALTER TABLE ONLY current_ways
2174 ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2178 -- Name: diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2181 ALTER TABLE ONLY diary_comments
2182 ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES diary_entries(id);
2186 -- Name: diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2189 ALTER TABLE ONLY diary_comments
2190 ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2194 -- Name: diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2197 ALTER TABLE ONLY diary_entries
2198 ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES languages(code);
2202 -- Name: diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2205 ALTER TABLE ONLY diary_entries
2206 ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2210 -- Name: friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2213 ALTER TABLE ONLY friends
2214 ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES users(id);
2218 -- Name: friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2221 ALTER TABLE ONLY friends
2222 ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2226 -- Name: gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2229 ALTER TABLE ONLY gps_points
2230 ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2234 -- Name: gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2237 ALTER TABLE ONLY gpx_file_tags
2238 ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES gpx_files(id);
2242 -- Name: gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2245 ALTER TABLE ONLY gpx_files
2246 ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2250 -- Name: messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2253 ALTER TABLE ONLY messages
2254 ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES users(id);
2258 -- Name: messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2261 ALTER TABLE ONLY messages
2262 ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES users(id);
2266 -- Name: node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2269 ALTER TABLE ONLY node_tags
2270 ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES nodes(node_id, version);
2274 -- Name: nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2277 ALTER TABLE ONLY nodes
2278 ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2282 -- Name: nodes_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2285 ALTER TABLE ONLY nodes
2286 ADD CONSTRAINT nodes_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2290 -- Name: note_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2293 ALTER TABLE ONLY note_comments
2294 ADD CONSTRAINT note_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id);
2298 -- Name: note_comments_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2301 ALTER TABLE ONLY note_comments
2302 ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES notes(id);
2306 -- Name: oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2309 ALTER TABLE ONLY oauth_tokens
2310 ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES client_applications(id);
2314 -- Name: oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2317 ALTER TABLE ONLY oauth_tokens
2318 ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2322 -- Name: redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2325 ALTER TABLE ONLY redactions
2326 ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2330 -- Name: relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2333 ALTER TABLE ONLY relation_members
2334 ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2338 -- Name: relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2341 ALTER TABLE ONLY relation_tags
2342 ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES relations(relation_id, version);
2346 -- Name: relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2349 ALTER TABLE ONLY relations
2350 ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2354 -- Name: relations_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2357 ALTER TABLE ONLY relations
2358 ADD CONSTRAINT relations_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2362 -- Name: user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2365 ALTER TABLE ONLY user_blocks
2366 ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES users(id);
2370 -- Name: user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2373 ALTER TABLE ONLY user_blocks
2374 ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES users(id);
2378 -- Name: user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2381 ALTER TABLE ONLY user_blocks
2382 ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2386 -- Name: user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2389 ALTER TABLE ONLY user_preferences
2390 ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2394 -- Name: user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2397 ALTER TABLE ONLY user_roles
2398 ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES users(id);
2402 -- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2405 ALTER TABLE ONLY user_roles
2406 ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2410 -- Name: user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2413 ALTER TABLE ONLY user_tokens
2414 ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(id);
2418 -- Name: way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2421 ALTER TABLE ONLY way_nodes
2422 ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2426 -- Name: way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2429 ALTER TABLE ONLY way_tags
2430 ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES ways(way_id, version);
2434 -- Name: ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2437 ALTER TABLE ONLY ways
2438 ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES changesets(id);
2442 -- Name: ways_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2445 ALTER TABLE ONLY ways
2446 ADD CONSTRAINT ways_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES redactions(id);
2450 -- PostgreSQL database dump complete
2453 SET search_path TO "$user",public;
2455 INSERT INTO schema_migrations (version) VALUES ('1');
2457 INSERT INTO schema_migrations (version) VALUES ('10');
2459 INSERT INTO schema_migrations (version) VALUES ('11');
2461 INSERT INTO schema_migrations (version) VALUES ('12');
2463 INSERT INTO schema_migrations (version) VALUES ('13');
2465 INSERT INTO schema_migrations (version) VALUES ('14');
2467 INSERT INTO schema_migrations (version) VALUES ('15');
2469 INSERT INTO schema_migrations (version) VALUES ('16');
2471 INSERT INTO schema_migrations (version) VALUES ('17');
2473 INSERT INTO schema_migrations (version) VALUES ('18');
2475 INSERT INTO schema_migrations (version) VALUES ('19');
2477 INSERT INTO schema_migrations (version) VALUES ('2');
2479 INSERT INTO schema_migrations (version) VALUES ('20');
2481 INSERT INTO schema_migrations (version) VALUES ('20100513171259');
2483 INSERT INTO schema_migrations (version) VALUES ('20100516124737');
2485 INSERT INTO schema_migrations (version) VALUES ('20100910084426');
2487 INSERT INTO schema_migrations (version) VALUES ('20101114011429');
2489 INSERT INTO schema_migrations (version) VALUES ('20110322001319');
2491 INSERT INTO schema_migrations (version) VALUES ('20110508145337');
2493 INSERT INTO schema_migrations (version) VALUES ('20110521142405');
2495 INSERT INTO schema_migrations (version) VALUES ('20110925112722');
2497 INSERT INTO schema_migrations (version) VALUES ('20111116184519');
2499 INSERT INTO schema_migrations (version) VALUES ('20111212183945');
2501 INSERT INTO schema_migrations (version) VALUES ('20120123184321');
2503 INSERT INTO schema_migrations (version) VALUES ('20120208122334');
2505 INSERT INTO schema_migrations (version) VALUES ('20120208194454');
2507 INSERT INTO schema_migrations (version) VALUES ('20120214210114');
2509 INSERT INTO schema_migrations (version) VALUES ('20120219161649');
2511 INSERT INTO schema_migrations (version) VALUES ('20120318201948');
2513 INSERT INTO schema_migrations (version) VALUES ('20120328090602');
2515 INSERT INTO schema_migrations (version) VALUES ('20120404205604');
2517 INSERT INTO schema_migrations (version) VALUES ('20120808231205');
2519 INSERT INTO schema_migrations (version) VALUES ('20121005195010');
2521 INSERT INTO schema_migrations (version) VALUES ('20121012044047');
2523 INSERT INTO schema_migrations (version) VALUES ('20121119165817');
2525 INSERT INTO schema_migrations (version) VALUES ('20121202155309');
2527 INSERT INTO schema_migrations (version) VALUES ('20121203124841');
2529 INSERT INTO schema_migrations (version) VALUES ('20130328184137');
2531 INSERT INTO schema_migrations (version) VALUES ('20131212124700');
2533 INSERT INTO schema_migrations (version) VALUES ('20140115192822');
2535 INSERT INTO schema_migrations (version) VALUES ('20140117185510');
2537 INSERT INTO schema_migrations (version) VALUES ('20140210003018');
2539 INSERT INTO schema_migrations (version) VALUES ('20140507110937');
2541 INSERT INTO schema_migrations (version) VALUES ('20140519141742');
2543 INSERT INTO schema_migrations (version) VALUES ('20150110152606');
2545 INSERT INTO schema_migrations (version) VALUES ('20150111192335');
2547 INSERT INTO schema_migrations (version) VALUES ('21');
2549 INSERT INTO schema_migrations (version) VALUES ('22');
2551 INSERT INTO schema_migrations (version) VALUES ('23');
2553 INSERT INTO schema_migrations (version) VALUES ('24');
2555 INSERT INTO schema_migrations (version) VALUES ('25');
2557 INSERT INTO schema_migrations (version) VALUES ('26');
2559 INSERT INTO schema_migrations (version) VALUES ('27');
2561 INSERT INTO schema_migrations (version) VALUES ('28');
2563 INSERT INTO schema_migrations (version) VALUES ('29');
2565 INSERT INTO schema_migrations (version) VALUES ('3');
2567 INSERT INTO schema_migrations (version) VALUES ('30');
2569 INSERT INTO schema_migrations (version) VALUES ('31');
2571 INSERT INTO schema_migrations (version) VALUES ('32');
2573 INSERT INTO schema_migrations (version) VALUES ('33');
2575 INSERT INTO schema_migrations (version) VALUES ('34');
2577 INSERT INTO schema_migrations (version) VALUES ('35');
2579 INSERT INTO schema_migrations (version) VALUES ('36');
2581 INSERT INTO schema_migrations (version) VALUES ('37');
2583 INSERT INTO schema_migrations (version) VALUES ('38');
2585 INSERT INTO schema_migrations (version) VALUES ('39');
2587 INSERT INTO schema_migrations (version) VALUES ('4');
2589 INSERT INTO schema_migrations (version) VALUES ('40');
2591 INSERT INTO schema_migrations (version) VALUES ('41');
2593 INSERT INTO schema_migrations (version) VALUES ('42');
2595 INSERT INTO schema_migrations (version) VALUES ('43');
2597 INSERT INTO schema_migrations (version) VALUES ('44');
2599 INSERT INTO schema_migrations (version) VALUES ('45');
2601 INSERT INTO schema_migrations (version) VALUES ('46');
2603 INSERT INTO schema_migrations (version) VALUES ('47');
2605 INSERT INTO schema_migrations (version) VALUES ('48');
2607 INSERT INTO schema_migrations (version) VALUES ('49');
2609 INSERT INTO schema_migrations (version) VALUES ('5');
2611 INSERT INTO schema_migrations (version) VALUES ('50');
2613 INSERT INTO schema_migrations (version) VALUES ('51');
2615 INSERT INTO schema_migrations (version) VALUES ('52');
2617 INSERT INTO schema_migrations (version) VALUES ('53');
2619 INSERT INTO schema_migrations (version) VALUES ('54');
2621 INSERT INTO schema_migrations (version) VALUES ('55');
2623 INSERT INTO schema_migrations (version) VALUES ('56');
2625 INSERT INTO schema_migrations (version) VALUES ('57');
2627 INSERT INTO schema_migrations (version) VALUES ('6');
2629 INSERT INTO schema_migrations (version) VALUES ('7');
2631 INSERT INTO schema_migrations (version) VALUES ('8');
2633 INSERT INTO schema_migrations (version) VALUES ('9');