From: willcast Date: Thu, 27 Nov 2003 13:32:02 +0000 (+0000) Subject: - Deleting inconsistent records on glossary_alias due to the last fixed bug. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f23e14e271b91c7473aeb7a3b0ca3f7e5d958f4;p=moodle.git - Deleting inconsistent records on glossary_alias due to the last fixed bug. --- diff --git a/mod/glossary/db/mysql.php b/mod/glossary/db/mysql.php index fd1232f422..e7b21c6ff9 100644 --- a/mod/glossary/db/mysql.php +++ b/mod/glossary/db/mysql.php @@ -238,6 +238,11 @@ function glossary_upgrade($oldversion) { if ($oldversion < 2003112101) { table_column("glossary", "", "scale", "integer", "10", "", "0", "", "assesstimefinish"); } + + if ($oldversion < 2003112701) { + delete_records("glossary_alias","entryid",0); + } + return true; } diff --git a/mod/glossary/version.php b/mod/glossary/version.php index 0adac13e94..4985f4d3aa 100644 --- a/mod/glossary/version.php +++ b/mod/glossary/version.php @@ -5,7 +5,7 @@ /// This fragment is called by moodle_needs_upgrading() and /admin/index.php ///////////////////////////////////////////////////////////////////////////////// -$module->version = 2003112101; // The current module version (Date: YYYYMMDDXX) +$module->version = 2003112701; // The current module version (Date: YYYYMMDDXX) $module->cron = 0; // Period for cron to check this module (secs) $release = "0.5 development"; // User-friendly version number