]> git.mjollnir.org Git - moodle.git/commitdiff
- Deleting inconsistent records on glossary_alias due to the last fixed bug.
authorwillcast <willcast>
Thu, 27 Nov 2003 13:32:02 +0000 (13:32 +0000)
committerwillcast <willcast>
Thu, 27 Nov 2003 13:32:02 +0000 (13:32 +0000)
mod/glossary/db/mysql.php
mod/glossary/version.php

index fd1232f422c0073c029da4b7266ed795b2c7bf4c..e7b21c6ff94b405cf9b192d0203253c62936160d 100644 (file)
@@ -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;
 }
 
index 0adac13e94bdda2fe4e47ca884c9c350118fb1f7..4985f4d3aabf6cc4aa1dd5a9773af54e8adc0009 100644 (file)
@@ -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