mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
partially fix some old update tools
This commit is contained in:
parent
2eeb3771ee
commit
64f75009bf
|
@ -119,6 +119,5 @@ if (!update_db()) {
|
|||
|
||||
print "<b>Update done</b><br>";
|
||||
|
||||
print "</body></html>";
|
||||
print "</body></html>";
|
||||
|
||||
?>
|
||||
|
|
|
@ -19,7 +19,7 @@ CREATE TABLE `tblDocumentFiles` (
|
|||
`fileType` varchar(10) NOT NULL default '',
|
||||
`mimeType` varchar(70) NOT NULL default '',
|
||||
PRIMARY KEY (`id`)
|
||||
) ;
|
||||
) Engine=MyISAM ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
|
|
@ -68,6 +68,5 @@ if (!update_db()) {
|
|||
|
||||
}else print "</pre><b>Update done</b><br>";
|
||||
|
||||
print "</body></html>";
|
||||
print "</body></html>";
|
||||
|
||||
?>
|
||||
|
|
|
@ -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 ;
|
||||
|
|
|
@ -68,6 +68,4 @@ if (!update_db()) {
|
|||
|
||||
}else print "</pre><b>Update done</b><br>";
|
||||
|
||||
print "</body></html>";
|
||||
|
||||
?>
|
||||
print "</body></html>";
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user