partially fix some old update tools

This commit is contained in:
Uwe Steinmann 2022-09-08 17:50:01 +02:00
parent 2eeb3771ee
commit 64f75009bf
6 changed files with 165 additions and 171 deletions

View File

@ -121,4 +121,3 @@ print "<b>Update done</b><br>";
print "</body></html>";
?>

View File

@ -19,7 +19,7 @@ CREATE TABLE `tblDocumentFiles` (
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
) Engine=MyISAM ;
-- --------------------------------------------------------

View File

@ -70,4 +70,3 @@ if (!update_db()) {
print "</body></html>";
?>

View File

@ -24,7 +24,7 @@ CREATE TABLE `tblMandatoryReviewers` (
`reviewerUserID` int(11) NOT NULL default '0',
`reviewerGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`)
) ;
) Engine=MyISAM ;
--
-- Table structure for mandatory approvers
@ -35,4 +35,4 @@ CREATE TABLE `tblMandatoryApprovers` (
`approverUserID` int(11) NOT NULL default '0',
`approverGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`)
) ;
) Engine=MyISAM ;

View File

@ -69,5 +69,3 @@ if (!update_db()) {
}else print "</pre><b>Update done</b><br>";
print "</body></html>";
?>

View File

@ -20,9 +20,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
function check($doupdate=0) { /* {{{ */
global $db, $settings;
function check($db, $doupdate=0) { /* {{{ */
$arr = array();
$arr['tblDocuments'] = array('key'=>'id', 'fields'=>array('name', 'comment', 'keywords'));
$arr['tblDocumentFiles'] = array('key'=>'id', 'fields'=>array('name', 'comment', 'mimeType'));
@ -91,7 +89,7 @@ else
$doupdate = 0;
$doupdate = 1;
if (!check($doupdate)) {
if (!check($db, $doupdate)) {
print "<p>Update failed</p>";
}