From c9c7db941a45da13ee68e6bb015d586bad9ad4a0 Mon Sep 17 00:00:00 2001 From: Mike Slemmer Date: Thu, 29 Nov 2012 01:27:55 -0800 Subject: [PATCH] added storage for maxmind data --- manifest | 3 ++- up/max_mind.sql | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 up/max_mind.sql diff --git a/manifest b/manifest index b86075de7..a1ea78d8d 100644 --- a/manifest +++ b/manifest @@ -25,4 +25,5 @@ update_user_band_fields.sql add_recording_creator_id.sql make_location_nullable.sql band_invitations.sql -image_urls.sql \ No newline at end of file +image_urls.sql +max_mind.sql \ No newline at end of file diff --git a/up/max_mind.sql b/up/max_mind.sql new file mode 100644 index 000000000..4bbcc2121 --- /dev/null +++ b/up/max_mind.sql @@ -0,0 +1,12 @@ +CREATE TABLE max_mind ( + ip_bottom INTEGER, + ip_top INTEGER, + country VARCHAR(64), + region VARCHAR(64), + city VARCHAR(255) +); + +CREATE INDEX max_mind_ip_bottom_idx ON max_mind(ip_bottom); +CREATE INDEX max_mind_ip_top_idx ON max_mind(ip_top); + +