1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
|
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: acts_as_xapian_jobs; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE acts_as_xapian_jobs (
id integer NOT NULL,
model character varying(255) NOT NULL,
model_id integer NOT NULL,
action character varying(255) NOT NULL
);
--
-- Name: acts_as_xapian_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE acts_as_xapian_jobs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: acts_as_xapian_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE acts_as_xapian_jobs_id_seq OWNED BY acts_as_xapian_jobs.id;
--
-- Name: censor_rules; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE censor_rules (
id integer NOT NULL,
info_request_id integer,
user_id integer,
public_body_id integer,
text text NOT NULL,
replacement text NOT NULL,
last_edit_editor character varying(255) NOT NULL,
last_edit_comment text NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
regexp boolean
);
--
-- Name: censor_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE censor_rules_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: censor_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE censor_rules_id_seq OWNED BY censor_rules.id;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE comments (
id integer NOT NULL,
user_id integer NOT NULL,
comment_type character varying(255) DEFAULT 'internal_error'::character varying NOT NULL,
info_request_id integer,
body text NOT NULL,
visible boolean DEFAULT true NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
locale text DEFAULT ''::text NOT NULL
);
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
--
-- Name: mail_server_log_dones; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE mail_server_log_dones (
id integer NOT NULL,
filename text NOT NULL,
last_stat timestamp without time zone NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- Name: exim_log_dones_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE exim_log_dones_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: exim_log_dones_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE exim_log_dones_id_seq OWNED BY mail_server_log_dones.id;
--
-- Name: mail_server_logs; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE mail_server_logs (
id integer NOT NULL,
mail_server_log_done_id integer,
info_request_id integer,
"order" integer NOT NULL,
line text NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- Name: exim_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE exim_logs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: exim_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE exim_logs_id_seq OWNED BY mail_server_logs.id;
--
-- Name: foi_attachments; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE foi_attachments (
id integer NOT NULL,
content_type text,
filename text,
charset text,
display_size text,
url_part_number integer,
within_rfc822_subject text,
incoming_message_id integer,
hexdigest character varying(32)
);
--
-- Name: foi_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE foi_attachments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: foi_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE foi_attachments_id_seq OWNED BY foi_attachments.id;
--
-- Name: has_tag_string_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE has_tag_string_tags (
id integer NOT NULL,
model_id integer NOT NULL,
name text NOT NULL,
created_at timestamp without time zone NOT NULL,
value text,
model character varying(255) NOT NULL
);
--
-- Name: holidays; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE holidays (
id integer NOT NULL,
day date,
description text
);
--
-- Name: holidays_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE holidays_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: holidays_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE holidays_id_seq OWNED BY holidays.id;
--
-- Name: incoming_messages; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE incoming_messages (
id integer NOT NULL,
info_request_id integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
raw_email_id integer NOT NULL,
cached_attachment_text_clipped text,
cached_main_body_text_folded text,
cached_main_body_text_unfolded text,
subject text,
mail_from_domain text,
valid_to_reply_to boolean,
last_parsed timestamp without time zone,
mail_from text,
sent_at timestamp without time zone
);
--
-- Name: incoming_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE incoming_messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: incoming_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE incoming_messages_id_seq OWNED BY incoming_messages.id;
--
-- Name: info_request_events; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE info_request_events (
id integer NOT NULL,
info_request_id integer NOT NULL,
event_type text NOT NULL,
params_yaml text NOT NULL,
created_at timestamp without time zone NOT NULL,
described_state character varying(255),
calculated_state character varying(255) DEFAULT NULL::character varying,
last_described_at timestamp without time zone,
incoming_message_id integer,
outgoing_message_id integer,
comment_id integer,
prominence character varying(255) DEFAULT 'normal'::character varying NOT NULL
);
--
-- Name: info_request_events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE info_request_events_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: info_request_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE info_request_events_id_seq OWNED BY info_request_events.id;
--
-- Name: info_requests; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE info_requests (
id integer NOT NULL,
title text NOT NULL,
user_id integer,
public_body_id integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
described_state character varying(255) NOT NULL,
awaiting_description boolean DEFAULT false NOT NULL,
prominence character varying(255) DEFAULT 'normal'::character varying NOT NULL,
url_title text NOT NULL,
law_used character varying(255) DEFAULT 'foi'::character varying NOT NULL,
allow_new_responses_from character varying(255) DEFAULT 'anybody'::character varying NOT NULL,
handle_rejected_responses character varying(255) DEFAULT 'bounce'::character varying NOT NULL,
idhash character varying(255) NOT NULL,
external_user_name character varying(255),
external_url character varying(255),
attention_requested boolean DEFAULT false,
comments_allowed boolean DEFAULT true NOT NULL,
CONSTRAINT info_requests_external_ck CHECK ((((user_id IS NULL) = (external_url IS NOT NULL)) AND ((external_url IS NOT NULL) OR (external_user_name IS NULL))))
);
--
-- Name: info_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE info_requests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: info_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE info_requests_id_seq OWNED BY info_requests.id;
--
-- Name: outgoing_messages; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE outgoing_messages (
id integer NOT NULL,
info_request_id integer NOT NULL,
body text NOT NULL,
status character varying(255) NOT NULL,
message_type character varying(255) NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
last_sent_at timestamp without time zone,
incoming_message_followup_id integer,
what_doing character varying(255) NOT NULL
);
--
-- Name: outgoing_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE outgoing_messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: outgoing_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE outgoing_messages_id_seq OWNED BY outgoing_messages.id;
--
-- Name: post_redirects; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE post_redirects (
id integer NOT NULL,
token text NOT NULL,
uri text NOT NULL,
post_params_yaml text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
email_token text NOT NULL,
reason_params_yaml text,
user_id integer,
circumstance text DEFAULT 'normal'::text NOT NULL
);
--
-- Name: post_redirects_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE post_redirects_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: post_redirects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE post_redirects_id_seq OWNED BY post_redirects.id;
--
-- Name: profile_photos; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE profile_photos (
id integer NOT NULL,
data bytea NOT NULL,
user_id integer,
draft boolean DEFAULT false NOT NULL
);
--
-- Name: profile_photos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE profile_photos_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: profile_photos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE profile_photos_id_seq OWNED BY profile_photos.id;
--
-- Name: public_bodies; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE public_bodies (
id integer NOT NULL,
name text NOT NULL,
short_name text NOT NULL,
request_email text NOT NULL,
version integer NOT NULL,
last_edit_editor character varying(255) NOT NULL,
last_edit_comment text NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
url_name text NOT NULL,
home_page text DEFAULT ''::text NOT NULL,
notes text DEFAULT ''::text NOT NULL,
first_letter character varying(255) NOT NULL,
publication_scheme text DEFAULT ''::text NOT NULL,
api_key character varying(255) NOT NULL,
info_requests_count integer DEFAULT 0 NOT NULL,
disclosure_log text DEFAULT ''::text NOT NULL
);
--
-- Name: public_bodies_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public_bodies_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: public_bodies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public_bodies_id_seq OWNED BY public_bodies.id;
--
-- Name: public_body_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public_body_tags_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: public_body_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public_body_tags_id_seq OWNED BY has_tag_string_tags.id;
--
-- Name: public_body_translations; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE public_body_translations (
id integer NOT NULL,
public_body_id integer,
locale character varying(255),
short_name text,
publication_scheme text,
url_name text,
first_letter character varying(255),
notes text,
name text,
request_email text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
disclosure_log text
);
--
-- Name: public_body_translations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public_body_translations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: public_body_translations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public_body_translations_id_seq OWNED BY public_body_translations.id;
--
-- Name: public_body_versions; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE public_body_versions (
id integer NOT NULL,
public_body_id integer,
version integer,
name text,
short_name text,
request_email text,
updated_at timestamp without time zone,
last_edit_editor character varying(255),
last_edit_comment text,
url_name text,
home_page text,
notes text,
publication_scheme text DEFAULT ''::text NOT NULL,
charity_number text DEFAULT ''::text NOT NULL,
disclosure_log text DEFAULT ''::text NOT NULL
);
--
-- Name: public_body_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public_body_versions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: public_body_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public_body_versions_id_seq OWNED BY public_body_versions.id;
--
-- Name: purge_requests; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE purge_requests (
id integer NOT NULL,
url character varying(255),
created_at timestamp without time zone NOT NULL,
model character varying(255) NOT NULL,
model_id integer NOT NULL
);
--
-- Name: purge_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE purge_requests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: purge_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE purge_requests_id_seq OWNED BY purge_requests.id;
--
-- Name: raw_emails; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE raw_emails (
id integer NOT NULL
);
--
-- Name: raw_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE raw_emails_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: raw_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE raw_emails_id_seq OWNED BY raw_emails.id;
--
-- Name: request_classifications; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE request_classifications (
id integer NOT NULL,
user_id integer,
info_request_event_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: request_classifications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE request_classifications_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: request_classifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE request_classifications_id_seq OWNED BY request_classifications.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE schema_migrations (
version character varying(255) NOT NULL
);
--
-- Name: track_things; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE track_things (
id integer NOT NULL,
tracking_user_id integer NOT NULL,
track_query character varying(255) NOT NULL,
info_request_id integer,
tracked_user_id integer,
public_body_id integer,
track_medium character varying(255) NOT NULL,
track_type character varying(255) DEFAULT 'internal_error'::character varying NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: track_things_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE track_things_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: track_things_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE track_things_id_seq OWNED BY track_things.id;
--
-- Name: track_things_sent_emails; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE track_things_sent_emails (
id integer NOT NULL,
track_thing_id integer NOT NULL,
info_request_event_id integer,
user_id integer,
public_body_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: track_things_sent_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE track_things_sent_emails_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: track_things_sent_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE track_things_sent_emails_id_seq OWNED BY track_things_sent_emails.id;
--
-- Name: user_info_request_sent_alerts; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE user_info_request_sent_alerts (
id integer NOT NULL,
user_id integer NOT NULL,
info_request_id integer NOT NULL,
alert_type character varying(255) NOT NULL,
info_request_event_id integer
);
--
-- Name: user_info_request_sent_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE user_info_request_sent_alerts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: user_info_request_sent_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE user_info_request_sent_alerts_id_seq OWNED BY user_info_request_sent_alerts.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE users (
id integer NOT NULL,
email character varying(255) NOT NULL,
name character varying(255) NOT NULL,
hashed_password character varying(255) NOT NULL,
salt character varying(255) NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
email_confirmed boolean DEFAULT false NOT NULL,
url_name text NOT NULL,
last_daily_track_email timestamp without time zone DEFAULT '2000-01-01 00:00:00'::timestamp without time zone,
admin_level character varying(255) DEFAULT 'none'::character varying NOT NULL,
ban_text text DEFAULT ''::text NOT NULL,
about_me text DEFAULT ''::text NOT NULL,
locale character varying(255),
email_bounced_at timestamp without time zone,
email_bounce_message text DEFAULT ''::text NOT NULL,
no_limit boolean DEFAULT false NOT NULL,
receive_email_alerts boolean DEFAULT true NOT NULL
);
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE users_id_seq OWNED BY users.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY acts_as_xapian_jobs ALTER COLUMN id SET DEFAULT nextval('acts_as_xapian_jobs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY censor_rules ALTER COLUMN id SET DEFAULT nextval('censor_rules_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY foi_attachments ALTER COLUMN id SET DEFAULT nextval('foi_attachments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY has_tag_string_tags ALTER COLUMN id SET DEFAULT nextval('public_body_tags_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY holidays ALTER COLUMN id SET DEFAULT nextval('holidays_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY incoming_messages ALTER COLUMN id SET DEFAULT nextval('incoming_messages_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_request_events ALTER COLUMN id SET DEFAULT nextval('info_request_events_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_requests ALTER COLUMN id SET DEFAULT nextval('info_requests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY mail_server_log_dones ALTER COLUMN id SET DEFAULT nextval('exim_log_dones_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY mail_server_logs ALTER COLUMN id SET DEFAULT nextval('exim_logs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY outgoing_messages ALTER COLUMN id SET DEFAULT nextval('outgoing_messages_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY post_redirects ALTER COLUMN id SET DEFAULT nextval('post_redirects_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY profile_photos ALTER COLUMN id SET DEFAULT nextval('profile_photos_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public_bodies ALTER COLUMN id SET DEFAULT nextval('public_bodies_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public_body_translations ALTER COLUMN id SET DEFAULT nextval('public_body_translations_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public_body_versions ALTER COLUMN id SET DEFAULT nextval('public_body_versions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY purge_requests ALTER COLUMN id SET DEFAULT nextval('purge_requests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY raw_emails ALTER COLUMN id SET DEFAULT nextval('raw_emails_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY request_classifications ALTER COLUMN id SET DEFAULT nextval('request_classifications_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things ALTER COLUMN id SET DEFAULT nextval('track_things_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things_sent_emails ALTER COLUMN id SET DEFAULT nextval('track_things_sent_emails_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_info_request_sent_alerts ALTER COLUMN id SET DEFAULT nextval('user_info_request_sent_alerts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
--
-- Name: acts_as_xapian_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY acts_as_xapian_jobs
ADD CONSTRAINT acts_as_xapian_jobs_pkey PRIMARY KEY (id);
--
-- Name: censor_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY censor_rules
ADD CONSTRAINT censor_rules_pkey PRIMARY KEY (id);
--
-- Name: comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_pkey PRIMARY KEY (id);
--
-- Name: exim_log_dones_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY mail_server_log_dones
ADD CONSTRAINT exim_log_dones_pkey PRIMARY KEY (id);
--
-- Name: exim_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY mail_server_logs
ADD CONSTRAINT exim_logs_pkey PRIMARY KEY (id);
--
-- Name: foi_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY foi_attachments
ADD CONSTRAINT foi_attachments_pkey PRIMARY KEY (id);
--
-- Name: holidays_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY holidays
ADD CONSTRAINT holidays_pkey PRIMARY KEY (id);
--
-- Name: incoming_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY incoming_messages
ADD CONSTRAINT incoming_messages_pkey PRIMARY KEY (id);
--
-- Name: info_request_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY info_request_events
ADD CONSTRAINT info_request_events_pkey PRIMARY KEY (id);
--
-- Name: info_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY info_requests
ADD CONSTRAINT info_requests_pkey PRIMARY KEY (id);
--
-- Name: outgoing_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY outgoing_messages
ADD CONSTRAINT outgoing_messages_pkey PRIMARY KEY (id);
--
-- Name: post_redirects_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY post_redirects
ADD CONSTRAINT post_redirects_pkey PRIMARY KEY (id);
--
-- Name: profile_photos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY profile_photos
ADD CONSTRAINT profile_photos_pkey PRIMARY KEY (id);
--
-- Name: public_bodies_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY public_bodies
ADD CONSTRAINT public_bodies_pkey PRIMARY KEY (id);
--
-- Name: public_body_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY has_tag_string_tags
ADD CONSTRAINT public_body_tags_pkey PRIMARY KEY (id);
--
-- Name: public_body_translations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY public_body_translations
ADD CONSTRAINT public_body_translations_pkey PRIMARY KEY (id);
--
-- Name: public_body_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY public_body_versions
ADD CONSTRAINT public_body_versions_pkey PRIMARY KEY (id);
--
-- Name: purge_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY purge_requests
ADD CONSTRAINT purge_requests_pkey PRIMARY KEY (id);
--
-- Name: raw_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY raw_emails
ADD CONSTRAINT raw_emails_pkey PRIMARY KEY (id);
--
-- Name: request_classifications_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY request_classifications
ADD CONSTRAINT request_classifications_pkey PRIMARY KEY (id);
--
-- Name: track_things_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY track_things
ADD CONSTRAINT track_things_pkey PRIMARY KEY (id);
--
-- Name: track_things_sent_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY track_things_sent_emails
ADD CONSTRAINT track_things_sent_emails_pkey PRIMARY KEY (id);
--
-- Name: user_info_request_sent_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY user_info_request_sent_alerts
ADD CONSTRAINT user_info_request_sent_alerts_pkey PRIMARY KEY (id);
--
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: by_model_and_model_id_and_name_and_value; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX by_model_and_model_id_and_name_and_value ON has_tag_string_tags USING btree (model, model_id, name, value);
--
-- Name: index_acts_as_xapian_jobs_on_model_and_model_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_acts_as_xapian_jobs_on_model_and_model_id ON acts_as_xapian_jobs USING btree (model, model_id);
--
-- Name: index_censor_rules_on_info_request_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_censor_rules_on_info_request_id ON censor_rules USING btree (info_request_id);
--
-- Name: index_censor_rules_on_public_body_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_censor_rules_on_public_body_id ON censor_rules USING btree (public_body_id);
--
-- Name: index_censor_rules_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_censor_rules_on_user_id ON censor_rules USING btree (user_id);
--
-- Name: index_exim_log_dones_on_last_stat; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_exim_log_dones_on_last_stat ON mail_server_log_dones USING btree (last_stat);
--
-- Name: index_exim_logs_on_exim_log_done_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_exim_logs_on_exim_log_done_id ON mail_server_logs USING btree (mail_server_log_done_id);
--
-- Name: index_exim_logs_on_info_request_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_exim_logs_on_info_request_id ON mail_server_logs USING btree (info_request_id);
--
-- Name: index_foi_attachments_on_incoming_message_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_foi_attachments_on_incoming_message_id ON foi_attachments USING btree (incoming_message_id);
--
-- Name: index_has_tag_string_tags_on_model_and_model_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_has_tag_string_tags_on_model_and_model_id ON has_tag_string_tags USING btree (model, model_id);
--
-- Name: index_has_tag_string_tags_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_has_tag_string_tags_on_name ON has_tag_string_tags USING btree (name);
--
-- Name: index_holidays_on_day; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_holidays_on_day ON holidays USING btree (day);
--
-- Name: index_incoming_messages_on_info_request_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_incoming_messages_on_info_request_id ON incoming_messages USING btree (info_request_id);
--
-- Name: index_incoming_messages_on_raw_email_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_incoming_messages_on_raw_email_id ON incoming_messages USING btree (raw_email_id);
--
-- Name: index_info_request_events_on_comment_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_request_events_on_comment_id ON info_request_events USING btree (comment_id);
--
-- Name: index_info_request_events_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_request_events_on_created_at ON info_request_events USING btree (created_at);
--
-- Name: index_info_request_events_on_incoming_message_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_request_events_on_incoming_message_id ON info_request_events USING btree (incoming_message_id);
--
-- Name: index_info_request_events_on_info_request_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_request_events_on_info_request_id ON info_request_events USING btree (info_request_id);
--
-- Name: index_info_request_events_on_outgoing_message_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_request_events_on_outgoing_message_id ON info_request_events USING btree (outgoing_message_id);
--
-- Name: index_info_requests_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_requests_on_created_at ON info_requests USING btree (created_at);
--
-- Name: index_info_requests_on_public_body_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_requests_on_public_body_id ON info_requests USING btree (public_body_id);
--
-- Name: index_info_requests_on_title; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_requests_on_title ON info_requests USING btree (title);
--
-- Name: index_info_requests_on_url_title; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_info_requests_on_url_title ON info_requests USING btree (url_title);
--
-- Name: index_info_requests_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_info_requests_on_user_id ON info_requests USING btree (user_id);
--
-- Name: index_outgoing_messages_on_incoming_message_followup_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_outgoing_messages_on_incoming_message_followup_id ON outgoing_messages USING btree (incoming_message_followup_id);
--
-- Name: index_outgoing_messages_on_info_request_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_outgoing_messages_on_info_request_id ON outgoing_messages USING btree (info_request_id);
--
-- Name: index_outgoing_messages_on_what_doing; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_outgoing_messages_on_what_doing ON outgoing_messages USING btree (what_doing);
--
-- Name: index_post_redirects_on_email_token; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_post_redirects_on_email_token ON post_redirects USING btree (email_token);
--
-- Name: index_post_redirects_on_token; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_post_redirects_on_token ON post_redirects USING btree (token);
--
-- Name: index_post_redirects_on_updated_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_post_redirects_on_updated_at ON post_redirects USING btree (updated_at);
--
-- Name: index_post_redirects_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_post_redirects_on_user_id ON post_redirects USING btree (user_id);
--
-- Name: index_public_bodies_on_first_letter; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_public_bodies_on_first_letter ON public_bodies USING btree (first_letter);
--
-- Name: index_public_bodies_on_url_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_public_bodies_on_url_name ON public_bodies USING btree (url_name);
--
-- Name: index_public_body_translations_on_public_body_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_public_body_translations_on_public_body_id ON public_body_translations USING btree (public_body_id);
--
-- Name: index_public_body_versions_on_updated_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_public_body_versions_on_updated_at ON public_body_versions USING btree (updated_at);
--
-- Name: index_request_classifications_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_request_classifications_on_user_id ON request_classifications USING btree (user_id);
--
-- Name: index_track_things_on_tracking_user_id_and_track_query; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_track_things_on_tracking_user_id_and_track_query ON track_things USING btree (tracking_user_id, track_query);
--
-- Name: index_track_things_sent_emails_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_track_things_sent_emails_on_created_at ON track_things_sent_emails USING btree (created_at);
--
-- Name: index_track_things_sent_emails_on_info_request_event_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_track_things_sent_emails_on_info_request_event_id ON track_things_sent_emails USING btree (info_request_event_id);
--
-- Name: index_track_things_sent_emails_on_track_thing_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_track_things_sent_emails_on_track_thing_id ON track_things_sent_emails USING btree (track_thing_id);
--
-- Name: index_user_info_request_sent_alerts_on_info_request_event_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_user_info_request_sent_alerts_on_info_request_event_id ON user_info_request_sent_alerts USING btree (info_request_event_id);
--
-- Name: index_users_on_url_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_users_on_url_name ON users USING btree (url_name);
--
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
--
-- Name: user_info_request_sent_alerts_unique_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX user_info_request_sent_alerts_unique_index ON user_info_request_sent_alerts USING btree (user_id, info_request_id, alert_type, (COALESCE(info_request_event_id, (-1))));
--
-- Name: users_email_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX users_email_index ON users USING btree (lower((email)::text));
--
-- Name: users_lower_email_index; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX users_lower_email_index ON users USING btree (lower((email)::text));
--
-- Name: fk_censor_rules_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY censor_rules
ADD CONSTRAINT fk_censor_rules_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_censor_rules_public_body; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY censor_rules
ADD CONSTRAINT fk_censor_rules_public_body FOREIGN KEY (public_body_id) REFERENCES public_bodies(id);
--
-- Name: fk_censor_rules_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY censor_rules
ADD CONSTRAINT fk_censor_rules_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_comments_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY comments
ADD CONSTRAINT fk_comments_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_comments_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY comments
ADD CONSTRAINT fk_comments_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_exim_log_done; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY mail_server_logs
ADD CONSTRAINT fk_exim_log_done FOREIGN KEY (mail_server_log_done_id) REFERENCES mail_server_log_dones(id);
--
-- Name: fk_exim_log_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY mail_server_logs
ADD CONSTRAINT fk_exim_log_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_incoming_message_followup_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY outgoing_messages
ADD CONSTRAINT fk_incoming_message_followup_info_request FOREIGN KEY (incoming_message_followup_id) REFERENCES incoming_messages(id);
--
-- Name: fk_incoming_messages_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY incoming_messages
ADD CONSTRAINT fk_incoming_messages_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_incoming_messages_raw_email; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY incoming_messages
ADD CONSTRAINT fk_incoming_messages_raw_email FOREIGN KEY (raw_email_id) REFERENCES raw_emails(id);
--
-- Name: fk_info_request_events_comment_id; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_request_events
ADD CONSTRAINT fk_info_request_events_comment_id FOREIGN KEY (comment_id) REFERENCES comments(id);
--
-- Name: fk_info_request_events_incoming_message_id; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_request_events
ADD CONSTRAINT fk_info_request_events_incoming_message_id FOREIGN KEY (incoming_message_id) REFERENCES incoming_messages(id);
--
-- Name: fk_info_request_events_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_request_events
ADD CONSTRAINT fk_info_request_events_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_info_request_events_outgoing_message_id; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_request_events
ADD CONSTRAINT fk_info_request_events_outgoing_message_id FOREIGN KEY (outgoing_message_id) REFERENCES outgoing_messages(id);
--
-- Name: fk_info_request_sent_alerts_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_info_request_sent_alerts
ADD CONSTRAINT fk_info_request_sent_alerts_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_info_request_sent_alerts_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_info_request_sent_alerts
ADD CONSTRAINT fk_info_request_sent_alerts_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_info_requests_public_body; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_requests
ADD CONSTRAINT fk_info_requests_public_body FOREIGN KEY (public_body_id) REFERENCES public_bodies(id);
--
-- Name: fk_info_requests_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY info_requests
ADD CONSTRAINT fk_info_requests_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_outgoing_messages_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY outgoing_messages
ADD CONSTRAINT fk_outgoing_messages_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_post_redirects_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY post_redirects
ADD CONSTRAINT fk_post_redirects_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_profile_photos_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY profile_photos
ADD CONSTRAINT fk_profile_photos_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_public_body_versions_public_body; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public_body_versions
ADD CONSTRAINT fk_public_body_versions_public_body FOREIGN KEY (public_body_id) REFERENCES public_bodies(id);
--
-- Name: fk_track_request_info_request; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things
ADD CONSTRAINT fk_track_request_info_request FOREIGN KEY (info_request_id) REFERENCES info_requests(id);
--
-- Name: fk_track_request_info_request_event; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things_sent_emails
ADD CONSTRAINT fk_track_request_info_request_event FOREIGN KEY (info_request_event_id) REFERENCES info_request_events(id);
--
-- Name: fk_track_request_public_body; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things
ADD CONSTRAINT fk_track_request_public_body FOREIGN KEY (public_body_id) REFERENCES public_bodies(id);
--
-- Name: fk_track_request_public_body; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things_sent_emails
ADD CONSTRAINT fk_track_request_public_body FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_track_request_tracked_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things
ADD CONSTRAINT fk_track_request_tracked_user FOREIGN KEY (tracked_user_id) REFERENCES users(id);
--
-- Name: fk_track_request_tracking_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things
ADD CONSTRAINT fk_track_request_tracking_user FOREIGN KEY (tracking_user_id) REFERENCES users(id);
--
-- Name: fk_track_request_user; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY track_things_sent_emails
ADD CONSTRAINT fk_track_request_user FOREIGN KEY (user_id) REFERENCES users(id);
--
-- Name: fk_user_info_request_sent_alert_info_request_event; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_info_request_sent_alerts
ADD CONSTRAINT fk_user_info_request_sent_alert_info_request_event FOREIGN KEY (info_request_event_id) REFERENCES info_request_events(id);
--
-- PostgreSQL database dump complete
--
INSERT INTO schema_migrations (version) VALUES ('1');
INSERT INTO schema_migrations (version) VALUES ('2');
INSERT INTO schema_migrations (version) VALUES ('4');
INSERT INTO schema_migrations (version) VALUES ('5');
INSERT INTO schema_migrations (version) VALUES ('6');
INSERT INTO schema_migrations (version) VALUES ('7');
INSERT INTO schema_migrations (version) VALUES ('8');
INSERT INTO schema_migrations (version) VALUES ('9');
INSERT INTO schema_migrations (version) VALUES ('10');
INSERT INTO schema_migrations (version) VALUES ('11');
INSERT INTO schema_migrations (version) VALUES ('12');
INSERT INTO schema_migrations (version) VALUES ('13');
INSERT INTO schema_migrations (version) VALUES ('14');
INSERT INTO schema_migrations (version) VALUES ('15');
INSERT INTO schema_migrations (version) VALUES ('16');
INSERT INTO schema_migrations (version) VALUES ('17');
INSERT INTO schema_migrations (version) VALUES ('18');
INSERT INTO schema_migrations (version) VALUES ('21');
INSERT INTO schema_migrations (version) VALUES ('22');
INSERT INTO schema_migrations (version) VALUES ('23');
INSERT INTO schema_migrations (version) VALUES ('24');
INSERT INTO schema_migrations (version) VALUES ('25');
INSERT INTO schema_migrations (version) VALUES ('26');
INSERT INTO schema_migrations (version) VALUES ('27');
INSERT INTO schema_migrations (version) VALUES ('28');
INSERT INTO schema_migrations (version) VALUES ('29');
INSERT INTO schema_migrations (version) VALUES ('30');
INSERT INTO schema_migrations (version) VALUES ('31');
INSERT INTO schema_migrations (version) VALUES ('32');
INSERT INTO schema_migrations (version) VALUES ('33');
INSERT INTO schema_migrations (version) VALUES ('34');
INSERT INTO schema_migrations (version) VALUES ('35');
INSERT INTO schema_migrations (version) VALUES ('36');
INSERT INTO schema_migrations (version) VALUES ('37');
INSERT INTO schema_migrations (version) VALUES ('38');
INSERT INTO schema_migrations (version) VALUES ('39');
INSERT INTO schema_migrations (version) VALUES ('40');
INSERT INTO schema_migrations (version) VALUES ('41');
INSERT INTO schema_migrations (version) VALUES ('42');
INSERT INTO schema_migrations (version) VALUES ('43');
INSERT INTO schema_migrations (version) VALUES ('44');
INSERT INTO schema_migrations (version) VALUES ('45');
INSERT INTO schema_migrations (version) VALUES ('46');
INSERT INTO schema_migrations (version) VALUES ('47');
INSERT INTO schema_migrations (version) VALUES ('48');
INSERT INTO schema_migrations (version) VALUES ('49');
INSERT INTO schema_migrations (version) VALUES ('50');
INSERT INTO schema_migrations (version) VALUES ('51');
INSERT INTO schema_migrations (version) VALUES ('52');
INSERT INTO schema_migrations (version) VALUES ('53');
INSERT INTO schema_migrations (version) VALUES ('54');
INSERT INTO schema_migrations (version) VALUES ('55');
INSERT INTO schema_migrations (version) VALUES ('56');
INSERT INTO schema_migrations (version) VALUES ('57');
INSERT INTO schema_migrations (version) VALUES ('58');
INSERT INTO schema_migrations (version) VALUES ('59');
INSERT INTO schema_migrations (version) VALUES ('60');
INSERT INTO schema_migrations (version) VALUES ('61');
INSERT INTO schema_migrations (version) VALUES ('62');
INSERT INTO schema_migrations (version) VALUES ('63');
INSERT INTO schema_migrations (version) VALUES ('64');
INSERT INTO schema_migrations (version) VALUES ('65');
INSERT INTO schema_migrations (version) VALUES ('66');
INSERT INTO schema_migrations (version) VALUES ('67');
INSERT INTO schema_migrations (version) VALUES ('68');
INSERT INTO schema_migrations (version) VALUES ('69');
INSERT INTO schema_migrations (version) VALUES ('70');
INSERT INTO schema_migrations (version) VALUES ('71');
INSERT INTO schema_migrations (version) VALUES ('72');
INSERT INTO schema_migrations (version) VALUES ('73');
INSERT INTO schema_migrations (version) VALUES ('74');
INSERT INTO schema_migrations (version) VALUES ('75');
INSERT INTO schema_migrations (version) VALUES ('76');
INSERT INTO schema_migrations (version) VALUES ('77');
INSERT INTO schema_migrations (version) VALUES ('78');
INSERT INTO schema_migrations (version) VALUES ('79');
INSERT INTO schema_migrations (version) VALUES ('80');
INSERT INTO schema_migrations (version) VALUES ('81');
INSERT INTO schema_migrations (version) VALUES ('82');
INSERT INTO schema_migrations (version) VALUES ('83');
INSERT INTO schema_migrations (version) VALUES ('84');
INSERT INTO schema_migrations (version) VALUES ('85');
INSERT INTO schema_migrations (version) VALUES ('86');
INSERT INTO schema_migrations (version) VALUES ('87');
INSERT INTO schema_migrations (version) VALUES ('88');
INSERT INTO schema_migrations (version) VALUES ('89');
INSERT INTO schema_migrations (version) VALUES ('90');
INSERT INTO schema_migrations (version) VALUES ('91');
INSERT INTO schema_migrations (version) VALUES ('92');
INSERT INTO schema_migrations (version) VALUES ('93');
INSERT INTO schema_migrations (version) VALUES ('94');
INSERT INTO schema_migrations (version) VALUES ('95');
INSERT INTO schema_migrations (version) VALUES ('96');
INSERT INTO schema_migrations (version) VALUES ('97');
INSERT INTO schema_migrations (version) VALUES ('98');
INSERT INTO schema_migrations (version) VALUES ('99');
INSERT INTO schema_migrations (version) VALUES ('100');
INSERT INTO schema_migrations (version) VALUES ('101');
INSERT INTO schema_migrations (version) VALUES ('102');
INSERT INTO schema_migrations (version) VALUES ('103');
INSERT INTO schema_migrations (version) VALUES ('104');
INSERT INTO schema_migrations (version) VALUES ('105');
INSERT INTO schema_migrations (version) VALUES ('106');
INSERT INTO schema_migrations (version) VALUES ('107');
INSERT INTO schema_migrations (version) VALUES ('108');
INSERT INTO schema_migrations (version) VALUES ('109');
INSERT INTO schema_migrations (version) VALUES ('110');
INSERT INTO schema_migrations (version) VALUES ('111');
INSERT INTO schema_migrations (version) VALUES ('112');
INSERT INTO schema_migrations (version) VALUES ('113');
INSERT INTO schema_migrations (version) VALUES ('114');
INSERT INTO schema_migrations (version) VALUES ('115');
INSERT INTO schema_migrations (version) VALUES ('116');
INSERT INTO schema_migrations (version) VALUES ('117');
INSERT INTO schema_migrations (version) VALUES ('118');
INSERT INTO schema_migrations (version) VALUES ('20120822145640');
INSERT INTO schema_migrations (version) VALUES ('20120910153022');
INSERT INTO schema_migrations (version) VALUES ('20120912111713');
INSERT INTO schema_migrations (version) VALUES ('20120912112036');
INSERT INTO schema_migrations (version) VALUES ('20120912112312');
INSERT INTO schema_migrations (version) VALUES ('20120912112655');
INSERT INTO schema_migrations (version) VALUES ('20120912113004');
INSERT INTO schema_migrations (version) VALUES ('20120912113720');
INSERT INTO schema_migrations (version) VALUES ('20120912114022');
INSERT INTO schema_migrations (version) VALUES ('20120912170035');
INSERT INTO schema_migrations (version) VALUES ('20120913074940');
INSERT INTO schema_migrations (version) VALUES ('20120913080807');
INSERT INTO schema_migrations (version) VALUES ('20120913081136');
INSERT INTO schema_migrations (version) VALUES ('20120913135745');
INSERT INTO schema_migrations (version) VALUES ('20120919140404');
INSERT INTO schema_migrations (version) VALUES ('20121010214348');
INSERT INTO schema_migrations (version) VALUES ('20121022031914');
|