sql/core_geoip_city.sql
[Pman.Core] / sql / core_geoip_location.sql
index e69de29..09c3898 100644 (file)
@@ -0,0 +1,12 @@
+CREATE  TABLE core_geoip_location (
+    id INT(11) NOT NULL AUTO_INCREMENT ,
+    start_ip TEXT NOT NULL DEFAULT ''
+    mask_length INT(11) NOT NULL DEFAULT 0,
+    postal_code INT(11) NOT NULL DEFAULT 0,
+    
+    PRIMARY KEY (id)
+);
+
+CREATE INDEX country_id_idx ON core_geoip_country (country_id) USING BTREE;
+CREATE INDEX network_ip_id_idx ON core_geoip_country (network_ip_id) USING BTREE;
+CREATE INDEX city_name_idx ON core_geoip_country (city_name) USING BTREE;