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.
43 lines
1.2 KiB
43 lines
1.2 KiB
8 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* AVE.cms - Универсальный календарь событий.
|
||
|
*
|
||
|
* @autor Repellent
|
||
|
* @package AVE.cms
|
||
|
* @subpackage module_unicalendar
|
||
|
* @filesource
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* mySQL-запросы для установки, обновления и удаления модуля
|
||
|
*/
|
||
|
|
||
|
$module_sql_install = array();
|
||
|
$module_sql_deinstall = array();
|
||
|
$module_sql_update = array();
|
||
|
|
||
|
//Удаление модуля
|
||
|
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_unicalendar;";
|
||
|
|
||
|
//Установка модуля
|
||
|
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_unicalendar` (
|
||
|
`id` int(10) unsigned NOT NULL auto_increment,
|
||
|
`uca_title` varchar(255) NOT NULL,
|
||
|
`uca_events` varchar(10) NOT NULL,
|
||
|
`uca_rubric_id` varchar(10) NOT NULL,
|
||
|
`uca_doc_id` varchar(1024) NOT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;";
|
||
|
|
||
|
$module_sql_update[] = "
|
||
|
UPDATE `CPPREFIX_module`
|
||
|
SET
|
||
|
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
|
||
|
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',
|
||
|
ModuleVersion = '" . $modul['ModuleVersion'] . "'
|
||
|
WHERE
|
||
|
ModuleSysName = '" . $modul['ModuleSysName'] . "'
|
||
|
LIMIT 1;
|
||
|
";
|
||
|
?>
|