sql/core_geoip_network_mapping.sql
authorEdward <edward@roojs.com>
Tue, 13 May 2014 09:19:20 +0000 (17:19 +0800)
committerEdward <edward@roojs.com>
Tue, 13 May 2014 09:19:20 +0000 (17:19 +0800)
sql/core_geoip_network_mapping.sql

index 30a9c7c..7bfbbdd 100644 (file)
@@ -1,9 +1,11 @@
 CREATE  TABLE core_geoip_network_mapping (
     id INT(11) NOT NULL AUTO_INCREMENT ,
-    network_start_ip TEXT NOT NULL DEFAULT '',
-    network_mask_length INT(11) NOT NUL DEFAULT 0,
+    start_ip TEXT NOT NULL DEFAULT '',
+    mask_length INT(11) NOT NUL DEFAULT 0,
     city_id INT(11) NOT NULL DEFAULT 0,
     PRIMARY KEY (id)
 );
 
+CREATE INDEX start_ip_idx ON core_geoip_country (start_ip) USING BTREE;
+CREATE INDEX mask_length_idx ON core_geoip_country (mask_length) USING BTREE;
 CREATE INDEX city_id_idx ON core_geoip_country (city_id) USING BTREE;