Модуль Unicalendar - календарь событий v1.26.8
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.
 
 
 
 

51 lines
1.5 KiB

<?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,
`uca_link` varchar(10) NOT NULL,
`uca_day` varchar(10) NOT NULL,
`uca_scroll` varchar(10) NOT NULL,
`uca_descript` varchar(10) NOT NULL,
`uca_user_title` varchar(255) NOT NULL,
`uca_user_descript` varchar(512) NOT NULL,
`uca_user_link` varchar(255) NOT NULL,
`uca_user_time` int(10) unsigned 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;
";
?>