@ -17,11 +17,11 @@
$module_sql_install = array();
$module_sql_install = array();
$module_sql_deinstall = array();
$module_sql_deinstall = array();
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX _module_mailer_mails";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%% _module_mailer_mails";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX _module_mailer_lists";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%% _module_mailer_lists";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX _module_mailer_receivers";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%% _module_mailer_receivers";
$module_sql_install[] = "CREATE TABLE CPPREFIX _module_mailer_mails (
$module_sql_install[] = "CREATE TABLE %%PRFX%% _module_mailer_mails (
id int(10) unsigned NOT NULL auto_increment,
id int(10) unsigned NOT NULL auto_increment,
author_id int(10) unsigned NOT NULL,
author_id int(10) unsigned NOT NULL,
date int(10) unsigned default NULL,
date int(10) unsigned default NULL,
@ -43,7 +43,7 @@ $module_sql_install[] = "CREATE TABLE CPPREFIX_module_mailer_mails (
PRIMARY KEY (id)
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
$module_sql_install[] = "CREATE TABLE CPPREFIX _module_mailer_lists (
$module_sql_install[] = "CREATE TABLE %%PRFX%% _module_mailer_lists (
id int(10) unsigned NOT NULL auto_increment,
id int(10) unsigned NOT NULL auto_increment,
title varchar(255) NOT NULL default '',
title varchar(255) NOT NULL default '',
descr longtext NOT NULL default '',
descr longtext NOT NULL default '',
@ -52,7 +52,7 @@ $module_sql_install[] = "CREATE TABLE CPPREFIX_module_mailer_lists (
PRIMARY KEY (id)
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
$module_sql_install[] = "CREATE TABLE CPPREFIX _module_mailer_receivers (
$module_sql_install[] = "CREATE TABLE %%PRFX%% _module_mailer_receivers (
id int(10) unsigned NOT NULL auto_increment,
id int(10) unsigned NOT NULL auto_increment,
list_id int(10) unsigned NOT NULL,
list_id int(10) unsigned NOT NULL,
status enum('0','1','2') NOT NULL default '1',
status enum('0','1','2') NOT NULL default '1',
@ -68,7 +68,7 @@ $module_sql_install[] = "CREATE TABLE CPPREFIX_module_mailer_receivers (
// Обновление модуля
// Обновление модуля
$module_sql_update[] = "
$module_sql_update[] = "
UPDATE
UPDATE
`CPPREFIX _module`
`%%PRFX%% _module`
SET
SET
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',
@ -80,22 +80,22 @@ $module_sql_update[] = "
$module_sql_update[] = "
$module_sql_update[] = "
RENAME TABLE
RENAME TABLE
`CPPREFIX _modul_mailer_mails`
`%%PRFX%% _modul_mailer_mails`
TO
TO
`CPPREFIX _module_mailer_mails`
`%%PRFX%% _module_mailer_mails`
";
";
$module_sql_update[] = "
$module_sql_update[] = "
RENAME TABLE
RENAME TABLE
`CPPREFIX _modul_mailer_lists`
`%%PRFX%% _modul_mailer_lists`
TO
TO
`CPPREFIX _module_mailer_lists`
`%%PRFX%% _module_mailer_lists`
";
";
$module_sql_update[] = "
$module_sql_update[] = "
RENAME TABLE
RENAME TABLE
`CPPREFIX _modul_mailer_receivers`
`%%PRFX%% _modul_mailer_receivers`
TO
TO
`CPPREFIX _module_mailer_receivers`
`%%PRFX%% _module_mailer_receivers`
";
";
?>
?>