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.
52 lines
1.3 KiB
52 lines
1.3 KiB
9 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* AVE.cms - Модуль Публикатор документов
|
||
|
*
|
||
|
* @package AVE.cms
|
||
|
* @subpackage module_EditDoc
|
||
|
* @filesource
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* mySQL-запросы для установки, обновления и удаления модуля
|
||
|
*/
|
||
|
|
||
|
$module_sql_install = array();
|
||
|
$module_sql_deinstall = array();
|
||
|
$module_sql_update = array();
|
||
|
|
||
|
//$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_editdoc;";
|
||
|
|
||
|
$module_sql_install[] = "CREATE TABLE IF NOT EXISTS CPPREFIX_module_editdoc (
|
||
|
`id` mediumint(5) unsigned NOT NULL auto_increment,
|
||
|
`editdoc_lastchange` int(10) unsigned default NULL,
|
||
|
`editdoc_name` varchar(255) NOT NULL,
|
||
|
`editdoc_rub` int(10) unsigned default NULL,
|
||
|
`editdoc_template` longtext NOT NULL,
|
||
|
`editdoc_fill_filters` longtext NOT NULL,
|
||
|
`editdoc_afteredit` longtext NOT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
|
||
|
|
||
|
// Обновление модуля
|
||
|
$module_sql_update[] = "
|
||
|
UPDATE
|
||
|
`CPPREFIX_module`
|
||
|
SET
|
||
|
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
|
||
|
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',
|
||
|
ModuleVersion = '" . $modul['ModuleVersion'] . "'
|
||
|
WHERE
|
||
|
ModuleSysName = '" . $modul['ModuleSysName'] . "'
|
||
|
LIMIT 1;
|
||
|
";
|
||
|
|
||
|
$module_sql_update[] = "
|
||
|
RENAME TABLE
|
||
|
`CPPREFIX_modul_editdoc`
|
||
|
TO
|
||
|
`CPPREFIX_module_editdoc`
|
||
|
";
|
||
|
|
||
|
?>
|