sql/core_geoip_location.sql
authorEdward <edward@roojs.com>
Wed, 14 May 2014 08:49:42 +0000 (16:49 +0800)
committerEdward <edward@roojs.com>
Wed, 14 May 2014 08:49:42 +0000 (16:49 +0800)
sql/core_geoip_location.sql

index 1e070be..c18543d 100644 (file)
@@ -1,11 +1,11 @@
 CREATE  TABLE core_geoip_location (
     id INT(11) NOT NULL AUTO_INCREMENT ,
-    latitude INT(11) NOT NULL DEFAULT 0,
-    longitude INT(11) NOT NULL DEFAULT 0,
+    latitude DECIMAL(11,8) NOT NULL DEFAULT 0,
+    longitude DECIMAL(11,8) NOT NULL DEFAULT 0,
     city_id INT(11) NOT NULL DEFAULT 0,
     PRIMARY KEY (id)
 );
 
-CREATE INDEX latitude_idx ON core_geoip_country (latitude) USING BTREE;
-CREATE INDEX longitude_idx ON core_geoip_country (longitude) USING BTREE;
-CREATE INDEX city_id_idx ON core_geoip_country (city_id) USING BTREE;
\ No newline at end of file
+CREATE INDEX latitude_idx ON core_geoip_location (latitude) USING BTREE;
+CREATE INDEX longitude_idx ON core_geoip_location (longitude) USING BTREE;
+CREATE INDEX city_id_idx ON core_geoip_location (city_id) USING BTREE;
\ No newline at end of file