You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
<?php |
|
|
|
/** |
|
* AVE.cms - Модуль GoogleMaps. |
|
* |
|
* @package AVE.cms |
|
* @subpackage module_gmap |
|
* @filesource |
|
*/ |
|
|
|
/** |
|
* mySQL-запросы для установки, обновления и удаления модуля |
|
*/ |
|
|
|
$module_sql_install = array(); |
|
$module_sql_deinstall = array(); |
|
|
|
|
|
//Удаление модуля |
|
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_gmap;"; |
|
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_gmap_markers;"; |
|
|
|
//Установка модуля |
|
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap` ( |
|
`id` int(10) unsigned NOT NULL auto_increment, |
|
`gmap_title` varchar(255) NOT NULL, |
|
`gmap_width` varchar(10) NOT NULL, |
|
`gmap_height` varchar(10) NOT NULL, |
|
`latitude` decimal(10,7) NOT NULL, |
|
`longitude` decimal(10,7) NOT NULL, |
|
`gmap_zoom` tinyint(2) NOT NULL, |
|
PRIMARY KEY (`id`) |
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;"; |
|
|
|
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap_markers` ( |
|
`id` int(10) unsigned NOT NULL auto_increment, |
|
`gmap_id` int(10) unsigned NOT NULL default '0', |
|
`latitude` decimal(10,7) NOT NULL, |
|
`longitude` decimal(10,7) NOT NULL, |
|
`title` varchar(255) NOT NULL, |
|
`image` text NOT NULL, |
|
PRIMARY KEY (`id`), |
|
KEY `gmap_id` (`gmap_id`) |
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;"; |
|
?>
|