~singpolyma/jmp-schemas

d042a322f9882a9ee9560c6c2fbc2345d8e4742e — Stephen Paul Weber 1 year, 26 days ago a449672
Add area_codes table

This requires PostGIS to be installed and enabled by the super user.

A table containing all the area codes in North America with their approximate
locations, for doing lookup by location.
5 files changed, 370 insertions(+), 0 deletions(-)

M .builds/debian-stable.yml
A deploy/area_codes.sql
A revert/area_codes.sql
M sqitch.plan
A verify/area_codes.sql
M .builds/debian-stable.yml => .builds/debian-stable.yml +2 -0
@@ 6,6 6,7 @@ packages:
- redis
- libhiredis-dev
- postgresql-13
- postgresql-postgis
- postgresql-server-dev-13
- sqitch
environment:


@@ 21,6 22,7 @@ tasks:
    sudo -u postgres psql -d jmp -c "CREATE EXTENSION btree_gist"
    sudo -u postgres psql -d jmp -c "CREATE EXTENSION citext"
    sudo -u postgres psql -d jmp -c "CREATE EXTENSION pgcrypto"
    sudo -u postgres psql -d jmp -c "CREATE EXTENSION postgis"
    sudo -u postgres psql -d jmp -c "CREATE EXTENSION redis_fdw"
    sudo -u postgres psql -d jmp -c "CREATE SERVER redis_server FOREIGN DATA WRAPPER redis_fdw OPTIONS (address '127.0.0.1', port '6379')"
    sudo -u postgres psql -d jmp -c "CREATE USER MAPPING FOR PUBLIC server redis_server"

A deploy/area_codes.sql => deploy/area_codes.sql +352 -0
@@ 0,0 1,352 @@
-- Deploy jmp:area_codes to pg

BEGIN;

CREATE TABLE area_codes (
	area_code TEXT NOT NULL PRIMARY KEY,
	country TEXT NOT NULL,
	location GEOGRAPHY(Point) NOT NULL
);

CREATE INDEX area_codes_country ON area_codes (country);
CREATE INDEX area_codes_location ON area_codes USING GIST (location);

INSERT INTO area_codes VALUES
	('201', 'US', 'POINT(-74.045678125 40.83885)'),
	('202', 'US', 'POINT(-77.03637 38.89511)'),
	('203', 'US', 'POINT(-73.122453125 41.291798125)'),
	('205', 'US', 'POINT(-86.886473333333 33.427671111111)'),
	('206', 'US', 'POINT(-122.34897571429 47.564027142857)'),
	('207', 'US', 'POINT(-69.987965 44.000005)'),
	('208', 'US', 'POINT(-115.558462 44.415674)'),
	('209', 'US', 'POINT(-120.999087 37.604049)'),
	('210', 'US', 'POINT(-98.49363 29.42412)'),
	('212', 'US', 'POINT(-74.00597 40.71427)'),
	('213', 'US', 'POINT(-118.24368 34.05223)'),
	('214', 'US', 'POINT(-96.837767916667 32.863500833333)'),
	('215', 'US', 'POINT(-74.99628 40.05372)'),
	('216', 'US', 'POINT(-81.616895454545 41.4749)'),
	('217', 'US', 'POINT(-88.895028571429 39.917895714286)'),
	('218', 'US', 'POINT(-94.05581 46.29681)'),
	('219', 'US', 'POINT(-87.2636 41.566263333333)'),
	('220', 'US', 'POINT(-82.66145 39.74919875)'),
	('224', 'US', 'POINT(-87.947605625 42.14730875)'),
	('225', 'US', 'POINT(-91.15455 30.45075)'),
	('228', 'US', 'POINT(-88.845213333333 30.388626666667)'),
	('229', 'US', 'POINT(-83.71803 31.205925)'),
	('231', 'US', 'POINT(-85.181773333333 43.02465)'),
	('234', 'US', 'POINT(-81.314626111111 41.063504444444)'),
	('239', 'US', 'POINT(-81.800608571429 26.456114285714)'),
	('240', 'US', 'POINT(-77.121279285714 39.047505)'),
	('248', 'US', 'POINT(-83.262428461538 42.543724615385)'),
	('251', 'US', 'POINT(-88.06097 30.71658)'),
	('252', 'US', 'POINT(-77.43325 35.42039)'),
	('253', 'US', 'POINT(-122.365951 47.228641)'),
	('254', 'US', 'POINT(-97.579188 31.204726)'),
	('256', 'US', 'POINT(-86.638881666667 34.418243333333)'),
	('260', 'US', 'POINT(-85.12886 41.1306)'),
	('262', 'US', 'POINT(-88.039892 42.991375)'),
	('267', 'US', 'POINT(-74.99628 40.05372)'),
	('269', 'US', 'POINT(-85.448463333333 42.270053333333)'),
	('270', 'US', 'POINT(-87.006631428571 37.44057)'),
	('272', 'US', 'POINT(-76.10365 41.238118)'),
	('276', 'US', 'POINT(-77.46026 37.55376)'),
	('281', 'US', 'POINT(-95.300398888889 29.709178888889)'),
	('301', 'US', 'POINT(-77.121279285714 39.047505)'),
	('302', 'US', 'POINT(-75.606873333333 39.52928)'),
	('303', 'US', 'POINT(-105.00266666667 39.77755625)'),
	('304', 'US', 'POINT(-81.162093333333 39.361145)'),
	('305', 'US', 'POINT(-80.35898037037 25.740417037037)'),
	('307', 'US', 'POINT(-105.5566625 42.4022675)'),
	('308', 'US', 'POINT(-99.396303333333 40.91612)'),
	('309', 'US', 'POINT(-89.855943333333 40.93229)'),
	('310', 'US', 'POINT(-118.352904375 33.899128125)'),
	('312', 'US', 'POINT(-88.20396 41.88475)'),
	('313', 'US', 'POINT(-83.201191111111 42.312228888889)'),
	('314', 'US', 'POINT(-90.323053333333 38.649496666667)'),
	('315', 'US', 'POINT(-75.862524 43.253676)'),
	('316', 'US', 'POINT(-97.33754 37.69224)'),
	('317', 'US', 'POINT(-86.071743333333 39.866706666667)'),
	('318', 'US', 'POINT(-92.942602 32.278824)'),
	('319', 'US', 'POINT(-91.778878333333 41.921948333333)'),
	('320', 'US', 'POINT(-94.16249 45.5608)'),
	('321', 'US', 'POINT(-81.1535335 28.3756865)'),
	('323', 'US', 'POINT(-118.21200545455 33.987178181818)'),
	('325', 'US', 'POINT(-100.08509 31.956255)'),
	('330', 'US', 'POINT(-81.314626111111 41.063504444444)'),
	('331', 'US', 'POINT(-88.0948236 41.8771732)'),
	('334', 'US', 'POINT(-85.86078875 32.187855)'),
	('336', 'US', 'POINT(-79.858592 35.986358)'),
	('337', 'US', 'POINT(-92.500372 30.242168)'),
	('339', 'US', 'POINT(-71.100365652174 42.389215652174)'),
	('346', 'US', 'POINT(-95.300398888889 29.709178888889)'),
	('347', 'US', 'POINT(-73.959668 40.691608)'),
	('351', 'US', 'POINT(-71.226208571429 42.603682857143)'),
	('352', 'US', 'POINT(-81.7805925 28.372005)'),
	('360', 'US', 'POINT(-122.57029111111 47.411182222222)'),
	('361', 'US', 'POINT(-97.418696666667 28.040573333333)'),
	('364', 'US', 'POINT(-87.006631428571 37.44057)'),
	('385', 'US', 'POINT(-111.88019214286 40.653856428571)'),
	('386', 'US', 'POINT(-81.110851428571 29.167798571429)'),
	('401', 'US', 'POINT(-71.418123 41.773583)'),
	('402', 'US', 'POINT(-96.881062857143 41.238971428571)'),
	('404', 'US', 'POINT(-84.372366666667 33.734668888889)'),
	('405', 'US', 'POINT(-97.413675 35.504228)'),
	('406', 'US', 'POINT(-111.567485 46.40531)'),
	('407', 'US', 'POINT(-81.308249333333 28.393690666667)'),
	('408', 'US', 'POINT(-121.88483222222 37.267165555556)'),
	('409', 'US', 'POINT(-94.436145 29.66411)'),
	('410', 'US', 'POINT(-76.587990645161 39.249978709677)'),
	('412', 'US', 'POINT(-79.919527777778 40.399266666667)'),
	('413', 'US', 'POINT(-72.713425 42.19644625)'),
	('414', 'US', 'POINT(-87.950007142857 42.946165714286)'),
	('415', 'US', 'POINT(-122.517545 37.927565)'),
	('417', 'US', 'POINT(-93.90576 37.14978)'),
	('419', 'US', 'POINT(-83.21476 41.128782857143)'),
	('423', 'US', 'POINT(-83.68173 35.841677142857)'),
	('424', 'US', 'POINT(-118.352904375 33.899128125)'),
	('425', 'US', 'POINT(-121.86407785714 47.733239285714)'),
	('432', 'US', 'POINT(-102.01847 32.030033333333)'),
	('434', 'US', 'POINT(-79.016593333333 37.339493333333)'),
	('435', 'US', 'POINT(-112.68724 39.270445)'),
	('440', 'US', 'POINT(-81.697331333333 41.479659333333)'),
	('442', 'US', 'POINT(-116.75811238095 33.669568095238)'),
	('443', 'US', 'POINT(-76.587990645161 39.249978709677)'),
	('458', 'US', 'POINT(-123.19441625 43.77279625)'),
	('469', 'US', 'POINT(-96.826015652174 32.869057826087)'),
	('478', 'US', 'POINT(-83.61615 32.730835)'),
	('479', 'US', 'POINT(-93.987424 35.849136)'),
	('480', 'US', 'POINT(-111.79106428571 33.431751428571)'),
	('484', 'US', 'POINT(-75.457804 40.251023)'),
	('501', 'US', 'POINT(-92.421822857143 34.768187142857)'),
	('502', 'US', 'POINT(-85.316345 38.227575)'),
	('503', 'US', 'POINT(-122.79654266667 45.347859333333)'),
	('504', 'US', 'POINT(-90.092177142857 29.941272857143)'),
	('505', 'US', 'POINT(-107.14879333333 35.545173333333)'),
	('507', 'US', 'POINT(-92.93543 44.048388333333)'),
	('508', 'US', 'POINT(-71.224194545455 42.006992727273)'),
	('509', 'US', 'POINT(-118.73412111111 46.765124444444)'),
	('510', 'US', 'POINT(-121.80745230769 37.43248)'),
	('512', 'US', 'POINT(-97.772174 30.359314)'),
	('513', 'US', 'POINT(-84.498834285714 39.349302857143)'),
	('515', 'US', 'POINT(-93.75476 41.840495)'),
	('516', 'US', 'POINT(-73.598140526316 40.701854736842)'),
	('517', 'US', 'POINT(-84.137551666667 42.487028333333)'),
	('518', 'US', 'POINT(-73.833068 42.819186)'),
	('520', 'US', 'POINT(-110.97648428571 32.118015714286)'),
	('530', 'US', 'POINT(-121.56659428571 39.338822857143)'),
	('531', 'US', 'POINT(-96.881062857143 41.238971428571)'),
	('539', 'US', 'POINT(-95.783525 36.1754425)'),
	('540', 'US', 'POINT(-79.504057142857 37.829541428571)'),
	('541', 'US', 'POINT(-123.19441625 43.77279625)'),
	('551', 'US', 'POINT(-74.045678125 40.83885)'),
	('559', 'US', 'POINT(-119.5360325 36.50766)'),
	('561', 'US', 'POINT(-80.135440833333 26.555793333333)'),
	('562', 'US', 'POINT(-118.08427714286 33.897952857143)'),
	('563', 'US', 'POINT(-90.59797 41.763524)'),
	('567', 'US', 'POINT(-83.21476 41.128782857143)'),
	('570', 'US', 'POINT(-76.10365 41.238118)'),
	('571', 'US', 'POINT(-77.270965 38.8324725)'),
	('573', 'US', 'POINT(-91.341913333333 38.278096666667)'),
	('574', 'US', 'POINT(-86.066116 41.672602)'),
	('575', 'US', 'POINT(-104.63893833333 33.022383333333)'),
	('580', 'US', 'POINT(-97.964955 35.170991666667)'),
	('585', 'US', 'POINT(-77.581943333333 43.171913333333)'),
	('586', 'US', 'POINT(-82.970317142857 42.539758571429)'),
	('601', 'US', 'POINT(-89.961072857143 32.197054285714)'),
	('602', 'US', 'POINT(-112.07404 33.44838)'),
	('603', 'US', 'POINT(-71.33472 43.04893875)'),
	('605', 'US', 'POINT(-99.176772 44.472588)'),
	('606', 'US', 'POINT(-82.63794 38.47841)'),
	('607', 'US', 'POINT(-76.407436666667 42.209706666667)'),
	('608', 'US', 'POINT(-89.563915 43.042495)'),
	('609', 'US', 'POINT(-74.7087 39.9697625)'),
	('610', 'US', 'POINT(-75.457804 40.251023)'),
	('612', 'US', 'POINT(-93.32084 44.9708)'),
	('614', 'US', 'POINT(-83.0058775 40.008745)'),
	('615', 'US', 'POINT(-86.5878425 36.10672375)'),
	('616', 'US', 'POINT(-85.73082 42.915765)'),
	('617', 'US', 'POINT(-71.100127272727 42.348581818182)'),
	('618', 'US', 'POINT(-89.9325675 38.56595375)'),
	('619', 'US', 'POINT(-117.04660416667 32.720583333333)'),
	('620', 'US', 'POINT(-98.7502925 38.0473075)'),
	('623', 'US', 'POINT(-112.29812166667 33.5849)'),
	('626', 'US', 'POINT(-118.0051808 34.0783752)'),
	('628', 'US', 'POINT(-122.517545 37.927565)'),
	('629', 'US', 'POINT(-86.5878425 36.10672375)'),
	('630', 'US', 'POINT(-88.0948236 41.8771732)'),
	('631', 'US', 'POINT(-73.20643 40.79404826087)'),
	('636', 'US', 'POINT(-90.598965 38.705978333333)'),
	('641', 'US', 'POINT(-92.840106666667 42.074336666667)'),
	('646', 'US', 'POINT(-74.00597 40.71427)'),
	('650', 'US', 'POINT(-122.284655625 37.53483375)'),
	('651', 'US', 'POINT(-93.084087857143 44.912425714286)'),
	('657', 'US', 'POINT(-117.92452266667 33.804700666667)'),
	('660', 'US', 'POINT(-93.22826 38.70446)'),
	('661', 'US', 'POINT(-118.77457857143 35.117865714286)'),
	('662', 'US', 'POINT(-89.632332857143 34.109314285714)'),
	('667', 'US', 'POINT(-76.587990645161 39.249978709677)'),
	('669', 'US', 'POINT(-121.88483222222 37.267165555556)'),
	('678', 'US', 'POINT(-84.360855217391 33.814474782609)'),
	('681', 'US', 'POINT(-81.162093333333 39.361145)'),
	('682', 'US', 'POINT(-97.223403333333 32.759575333333)'),
	('701', 'US', 'POINT(-99.003305 47.4602675)'),
	('702', 'US', 'POINT(-115.11436428571 36.140527142857)'),
	('703', 'US', 'POINT(-77.270965 38.8324725)'),
	('704', 'US', 'POINT(-80.747737777778 35.367685555556)'),
	('706', 'US', 'POINT(-83.94034 33.639484285714)'),
	('707', 'US', 'POINT(-122.52735727273 38.514229090909)'),
	('708', 'US', 'POINT(-87.72693047619 41.705734761905)'),
	('712', 'US', 'POINT(-96.13057 41.880965)'),
	('713', 'US', 'POINT(-95.300398888889 29.709178888889)'),
	('714', 'US', 'POINT(-117.92452266667 33.804700666667)'),
	('715', 'US', 'POINT(-90.7018125 45.25371)'),
	('716', 'US', 'POINT(-78.89547375 42.87564)'),
	('717', 'US', 'POINT(-76.582255 40.1537775)'),
	('718', 'US', 'POINT(-73.959668 40.691608)'),
	('719', 'US', 'POINT(-104.75283333333 38.64372)'),
	('720', 'US', 'POINT(-105.00266666667 39.77755625)'),
	('724', 'US', 'POINT(-79.9919975 40.565275)'),
	('725', 'US', 'POINT(-115.11436428571 36.140527142857)'),
	('727', 'US', 'POINT(-82.736329 28.006899)'),
	('731', 'US', 'POINT(-88.81395 35.61452)'),
	('732', 'US', 'POINT(-74.323679285714 40.420721428571)'),
	('734', 'US', 'POINT(-83.413476363636 42.251202727273)'),
	('737', 'US', 'POINT(-97.772174 30.359314)'),
	('740', 'US', 'POINT(-82.66145 39.74919875)'),
	('743', 'US', 'POINT(-79.858592 35.986358)'),
	('747', 'US', 'POINT(-118.43554333333 34.186115)'),
	('754', 'US', 'POINT(-80.201925263158 26.143138421053)'),
	('757', 'US', 'POINT(-76.313514285714 36.870171428571)'),
	('760', 'US', 'POINT(-116.75811238095 33.669568095238)'),
	('762', 'US', 'POINT(-83.94034 33.639484285714)'),
	('763', 'US', 'POINT(-93.359148888889 45.098514444444)'),
	('765', 'US', 'POINT(-85.937961428571 40.289168571429)'),
	('769', 'US', 'POINT(-89.961072857143 32.197054285714)'),
	('770', 'US', 'POINT(-84.3569235 33.8336605)'),
	('772', 'US', 'POINT(-80.3461 27.37194)'),
	('773', 'US', 'POINT(-88.20396 41.88475)'),
	('774', 'US', 'POINT(-71.224194545455 42.006992727273)'),
	('775', 'US', 'POINT(-118.82945 38.6091575)'),
	('779', 'US', 'POINT(-88.6227275 42.050869166667)'),
	('781', 'US', 'POINT(-71.100365652174 42.389215652174)'),
	('785', 'US', 'POINT(-96.88463 38.984614)'),
	('786', 'US', 'POINT(-80.35898037037 25.740417037037)'),
	('801', 'US', 'POINT(-111.88019214286 40.653856428571)'),
	('802', 'US', 'POINT(-72.873175 44.363525)'),
	('803', 'US', 'POINT(-81.057868 34.08893)'),
	('804', 'US', 'POINT(-77.415816 37.456984)'),
	('805', 'US', 'POINT(-119.696259375 34.60204125)'),
	('806', 'US', 'POINT(-101.79777 34.328216666667)'),
	('808', 'US', 'POINT(-157.23792666667 20.956035555556)'),
	('810', 'US', 'POINT(-83.242903333333 42.994286666667)'),
	('812', 'US', 'POINT(-86.391257142857 38.66688)'),
	('813', 'US', 'POINT(-82.427858888889 28.047438888889)'),
	('814', 'US', 'POINT(-78.8154425 40.9420075)'),
	('815', 'US', 'POINT(-88.6227275 42.050869166667)'),
	('816', 'US', 'POINT(-94.500676 39.104366)'),
	('817', 'US', 'POINT(-97.223403333333 32.759575333333)'),
	('818', 'US', 'POINT(-118.43554333333 34.186115)'),
	('828', 'US', 'POINT(-81.94761 35.66707)'),
	('830', 'US', 'POINT(-99.325156 29.478228)'),
	('831', 'US', 'POINT(-121.77046571429 36.758607142857)'),
	('832', 'US', 'POINT(-95.300398888889 29.709178888889)'),
	('843', 'US', 'POINT(-79.901955 33.0913225)'),
	('845', 'US', 'POINT(-74.064123333333 41.47292)'),
	('847', 'US', 'POINT(-87.947605625 42.14730875)'),
	('848', 'US', 'POINT(-74.323679285714 40.420721428571)'),
	('850', 'US', 'POINT(-86.61346 30.418668888889)'),
	('856', 'US', 'POINT(-75.053785714286 39.737218571429)'),
	('857', 'US', 'POINT(-71.100127272727 42.348581818182)'),
	('858', 'US', 'POINT(-117.03586 32.96282)'),
	('859', 'US', 'POINT(-84.4768825 38.4547925)'),
	('860', 'US', 'POINT(-72.641041666667 41.674009166667)'),
	('862', 'US', 'POINT(-74.216403333333 40.825112857143)'),
	('863', 'US', 'POINT(-81.84133 28.030855)'),
	('864', 'US', 'POINT(-82.294563333333 34.720858333333)'),
	('865', 'US', 'POINT(-84.10762 35.9344575)'),
	('870', 'US', 'POINT(-91.682218333333 34.654171666667)'),
	('878', 'US', 'POINT(-79.962276 40.459707)'),
	('901', 'US', 'POINT(-89.849395 35.120715)'),
	('903', 'US', 'POINT(-95.526376666667 33.012011111111)'),
	('904', 'US', 'POINT(-81.605646666667 30.252276666667)'),
	('907', 'US', 'POINT(-141.136315 60.268353333333)'),
	('908', 'US', 'POINT(-74.289773636364 40.662897272727)'),
	('909', 'US', 'POINT(-117.54055722222 34.074295)'),
	('910', 'US', 'POINT(-78.453958 34.757956)'),
	('912', 'US', 'POINT(-81.492983333333 32.126403333333)'),
	('913', 'US', 'POINT(-94.718015 39.0303175)'),
	('914', 'US', 'POINT(-73.8051675 41.026625)'),
	('915', 'US', 'POINT(-106.39512 31.70664)'),
	('916', 'US', 'POINT(-121.39831588235 38.540042352941)'),
	('917', 'US', 'POINT(-73.967385 40.695385)'),
	('918', 'US', 'POINT(-95.783525 36.1754425)'),
	('919', 'US', 'POINT(-78.77469 35.726142857143)'),
	('920', 'US', 'POINT(-88.281434 43.948076)'),
	('925', 'US', 'POINT(-121.935052 37.891776666667)'),
	('928', 'US', 'POINT(-113.5519425 34.3190475)'),
	('929', 'US', 'POINT(-73.959668 40.691608)'),
	('930', 'US', 'POINT(-86.391257142857 38.66688)'),
	('931', 'US', 'POINT(-86.632123333333 36.10256)'),
	('936', 'US', 'POINT(-95.097855 30.99429)'),
	('937', 'US', 'POINT(-84.115557692308 39.854266923077)'),
	('940', 'US', 'POINT(-97.54021 33.391593333333)'),
	('941', 'US', 'POINT(-82.344351666667 27.202133333333)'),
	('947', 'US', 'POINT(-83.262428461538 42.543724615385)'),
	('949', 'US', 'POINT(-117.73371615385 33.573486153846)'),
	('951', 'US', 'POINT(-117.258786 33.819667)'),
	('952', 'US', 'POINT(-93.4117575 44.838195)'),
	('954', 'US', 'POINT(-80.201925263158 26.143138421053)'),
	('956', 'US', 'POINT(-98.138061 26.299599)'),
	('959', 'US', 'POINT(-72.641041666667 41.674009166667)'),
	('970', 'US', 'POINT(-105.854795 40.11755)'),
	('971', 'US', 'POINT(-122.79654266667 45.347859333333)'),
	('972', 'US', 'POINT(-96.826015652174 32.869057826087)'),
	('973', 'US', 'POINT(-74.219415789474 40.834617368421)'),
	('978', 'US', 'POINT(-71.226208571429 42.603682857143)'),
	('979', 'US', 'POINT(-96.046253333333 30.112066666667)'),
	('980', 'US', 'POINT(-80.747737777778 35.367685555556)'),
	('984', 'US', 'POINT(-78.77469 35.726142857143)'),
	('985', 'US', 'POINT(-90.32739 29.979313333333)'),
	('989', 'US', 'POINT(-84.16104 43.52936)'),
	('854', 'US', 'POINT(-79.901955 33.0913225)'),
	('204', 'CA', 'POINT(-98.729934545455 51.203033636364)'),
	('226', 'CA', 'POINT(-81.230922352941 43.233831176471)'),
	('236', 'CA', 'POINT(-121.51536941176 50.432725294118)'),
	('249', 'CA', 'POINT(-80.003286428571 46.041822857143)'),
	('250', 'CA', 'POINT(-121.84152 50.837259090909)'),
	('289', 'CA', 'POINT(-79.333166 43.5654075)'),
	('306', 'CA', 'POINT(-105.68861454545 51.399736363636)'),
	('343', 'CA', 'POINT(-76.08718 44.955182142857)'),
	('365', 'CA', 'POINT(-79.3496 43.575115)'),
	('403', 'CA', 'POINT(-113.591395 51.2093535)'),
	('416', 'CA', 'POINT(-79.70173 43.459085)'),
	('418', 'CA', 'POINT(-71.384436170213 47.215538085106)'),
	('431', 'CA', 'POINT(-98.729934545455 51.203033636364)'),
	('437', 'CA', 'POINT(-79.4163 43.70011)'),
	('438', 'CA', 'POINT(-73.88272 45.5546)'),
	('450', 'CA', 'POINT(-73.216014255319 45.789232765957)'),
	('506', 'CA', 'POINT(-66.060475555556 46.566092222222)'),
	('514', 'CA', 'POINT(-73.355944 46.126976)'),
	('519', 'CA', 'POINT(-81.1431145 43.2104985)'),
	('579', 'CA', 'POINT(-73.27781027027 45.756958648649)'),
	('581', 'CA', 'POINT(-71.35332372093 47.26140744186)'),
	('587', 'CA', 'POINT(-113.70208954545 52.688353636364)'),
	('604', 'CA', 'POINT(-122.98475625 49.30576625)'),
	('613', 'CA', 'POINT(-76.402184705882 44.936384705882)'),
	('639', 'CA', 'POINT(-106.001166 51.636756)'),
	('647', 'CA', 'POINT(-79.4163 43.70011)'),
	('705', 'CA', 'POINT(-80.313261 45.7227065)'),
	('709', 'CA', 'POINT(-55.959877142857 48.949732857143)'),
	('778', 'CA', 'POINT(-122.21482163265 50.337179795918)'),
	('780', 'CA', 'POINT(-113.8699808 53.9300256)'),
	('782', 'CA', 'POINT(-63.865825 45.0743675)'),
	('807', 'CA', 'POINT(-88.84699 47.495825)'),
	('819', 'CA', 'POINT(-73.465640277778 46.339735)'),
	('825', 'CA', 'POINT(-113.321158 53.548798)'),
	('867', 'CA', 'POINT(-105.97452333333 62.30636)'),
	('873', 'CA', 'POINT(-74.104794090909 46.469091363636)'),
	('902', 'CA', 'POINT(-63.155714166667 45.441521666667)'),
	('905', 'CA', 'POINT(-79.333166 43.5654075)');

COMMIT;

A revert/area_codes.sql => revert/area_codes.sql +7 -0
@@ 0,0 1,7 @@
-- Revert jmp:area_codes from pg

BEGIN;

DROP TABLE area_codes;

COMMIT;

M sqitch.plan => sqitch.plan +2 -0
@@ 47,3 47,5 @@ parent_customer_id [plan_log customer_plans balances transactions] 2022-08-03T17

sims 2022-10-19T15:23:24Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Add table to track SIMs
@2022292 2022-10-19T15:39:55Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Tag sims table

area_codes 2023-02-06T15:30:19Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Create table for geography lookup of area codes

A verify/area_codes.sql => verify/area_codes.sql +7 -0
@@ 0,0 1,7 @@
-- Verify jmp:area_codes on pg

BEGIN;

SELECT area_code, country, ST_AsText(location) FROM area_codes;

ROLLBACK;