We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de7599 commit 5a35d20Copy full SHA for 5a35d20
1 file changed
maintain.inc.php
@@ -120,6 +120,22 @@ function plugin_install()
120
if (file_exists($gpx_dir) and is_dir($gpx_dir))
121
osm_deltree($gpx_dir);
122
123
+ // Easy access
124
+ if (!defined('osm_place_table'))
125
+ define('osm_place_table', $prefixeTable.'osm_places');
126
+
127
+ /* Table to hold osm places details */
128
+ $q = 'CREATE TABLE IF NOT EXISTS `'.osm_place_table.'` (
129
+ `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
130
+ `latitude` double(8,6) NOT NULL,
131
+ `longitude` double(8,6) NOT NULL,
132
+ `name` varchar(255) DEFAULT NULL,
133
+ `parentId` mediumint(8),
134
+ PRIMARY KEY (id)
135
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8
136
+ ;';
137
+ pwg_query($q);
138
139
// Create world map link
140
$dir_name = basename( dirname(__FILE__) );
141
$c = <<<EOF
0 commit comments