Used seperate scripts since we shouldn't assume the install wants to use
gis enabled tables for mysql.
--- /dev/null
+-- This script creates the table and indexs necessary to use kronolith's geo
+-- location features with a gis extension enabled mySQL database.
+
+CREATE TABLE kronolith_events_geo (
+ event_id VARCHAR(32) NOT NULL,
+ event_coordinates POINT NOT NULL,
+ SPATIAL INDEX (event_coordinates)
+);
+
+CREATE INDEX kronolith_events_geo_idx ON kronolith_events_geo (event_id);
\ No newline at end of file
--- /dev/null
+-- Use this script to create the table and index necessary for geo location
+-- support without mysql spatial extension support.
+CREATE TABLE kronolith_events_geo (
+ event_id VARCHAR(32) NOT NULL,
+ event_lat VARCHAR(32) NOT NULL,
+ event_lon VARCHAR(32) NOT NULL
+);
+
+CREATE INDEX kronolith_events_geo_idx ON kronolith_events_geo (event_id);
\ No newline at end of file