sql/core_geoip_location.sql
authorEdward <edward@roojs.com>
Fri, 27 Jun 2014 08:47:56 +0000 (16:47 +0800)
committerEdward <edward@roojs.com>
Fri, 27 Jun 2014 08:47:56 +0000 (16:47 +0800)
sql/core_geoip_location.sql

index c18543d..784ca36 100644 (file)
@@ -1,11 +1,13 @@
-CREATE  TABLE core_geoip_location (
-    id INT(11) NOT NULL AUTO_INCREMENT ,
-    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)
-);
+DROP TABLE IF EXISTS core_geoip_location;
 
-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
+-- CREATE  TABLE core_geoip_location (
+--     id INT(11) NOT NULL AUTO_INCREMENT ,
+--     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_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