XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
update.php
Go to the documentation of this file.
1
<?php
20
function
xoops_module_update_pm
(&
$module
, $oldversion = null)
21
{
22
23
if
($oldversion <= 100) {
24
GLOBAL
$xoopsDB
;
25
// Check pm table version
26
$sql
=
"SHOW COLUMNS FROM "
. $xoopsDB->prefix(
"priv_msgs"
);
27
if
(!
$result
= $xoopsDB->queryF(
$sql
)) {
28
return
false
;
29
}
30
// Migrate from existent pm module
31
if
( ($rows = $xoopsDB->getRowsNum(
$result
)) == 12) {
32
return
true
;
33
} elseif ($rows == 8) {
34
return
$xoopsDB->queryFromFile(XOOPS_ROOT_PATH .
"/modules/"
.
$module
->getVar(
'dirname'
,
'n'
) .
"/sql/mysql.upgrade.sql"
);
35
}
else
{
36
return
false
;
37
}
38
}
39
}
40
?>
L:
0xoops
xoops-2.5.6
htdocs
modules
pm
include
update.php
Generated on Fri May 10 2013 01:04:28 for XOOPS 2.5.6 by
1.8.3.1