Permalink
Browse files

- Deleting inconsistent records on glossary_alias due to the last fix…

…ed bug.
  • Loading branch information...
1 parent 3823500 commit 0f23e14e271b91c7473aeb7a3b0ca3f7e5d958f4 willcast committed Nov 27, 2003
Showing with 6 additions and 1 deletion.
  1. +5 −0 mod/glossary/db/mysql.php
  2. +1 −1 mod/glossary/version.php
View
5 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;
}
View
2 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

0 comments on commit 0f23e14

Please sign in to comment.