Changes to suit new upgrading procedure (admin/index.html)

This commit is contained in:
martin 2002-07-27 06:07:49 +00:00
parent ec5472d974
commit 12b820c227
5 changed files with 65 additions and 17 deletions

View File

@ -5,6 +5,18 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->fullname = "Assignment";
$module->version = 20020801;
$module->cron = 60;
$module->search = "";
function assignment_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
return true;
}
?> ?>

View File

@ -5,10 +5,18 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->fullname = "Choice"; $module->fullname = "Choice";
$module->version = "20011110"; $module->version = 20011110;
$module->cron = 0; $module->cron = 0;
$module->search = ""; $module->search = "";
function choice_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
return true;
}
?> ?>

View File

@ -5,10 +5,18 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->fullname = "Forum"; $module->fullname = "Forum";
$module->version = "20020801"; $module->version = 20020801;
$module->cron = 0; $module->cron = 0;
$module->search = ""; $module->search = "";
function forum_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
return true;
}
?> ?>

View File

@ -5,10 +5,22 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->fullname = "Journal"; $module->fullname = "Journal";
$module->version = "20011110"; $module->version = 200208010;
$module->cron = 0; $module->cron = 60;
$module->search = ""; $module->search = "";
?> function journal_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
$result = true;
if ($oldversion < 20020810) {
if (! execute_sql("ALTER TABLE `journal_entries` ADD `mailed` TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL")) {
$result = false;
}
}
return $result;
}

View File

@ -5,10 +5,18 @@
// This fragment is called by /admin/index.php // This fragment is called by /admin/index.php
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
$module->fullname = "Survey"; $module->fullname = "Survey";
$module->version = "20011110"; $module->version = 20020727;
$module->cron = 0; $module->cron = 0;
$module->search = ""; $module->search = "";
function survey_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
return true;
}
?> ?>