]> git.mjollnir.org Git - moodle.git/commitdiff
*** empty log message ***
authorwillcast <willcast>
Sun, 21 Sep 2003 23:34:21 +0000 (23:34 +0000)
committerwillcast <willcast>
Sun, 21 Sep 2003 23:34:21 +0000 (23:34 +0000)
mod/glossary/db/mysql.php
mod/glossary/db/mysql.sql
mod/glossary/db/postgres7.sql
mod/glossary/version.php

index 2fcaae6ba7f9754e7be4dbb440b48d5024fbdd4f..63da55218d3b1fe79ace656a30c53a9f3bc37237 100644 (file)
@@ -55,6 +55,10 @@ function glossary_upgrade($oldversion) {
           execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` CHANGE `categoryid` `categoryid` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ");
      }
 
+     if ( $oldversion < 2003092101 ) {
+          execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` ADD `ID` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST");
+     }
+
     return true;
 }
 
index c72df48210dc67945b806e74039d22c631983277..a994ebaa1c589cb546ba730b49de341468f4d931 100644 (file)
@@ -58,6 +58,7 @@ CREATE TABLE prefix_glossary_categories (
 #
 
 CREATE TABLE prefix_glossary_entries_categories (
+     id int(10) unsigned NOT NULL auto_increment,
      categoryid int(10) unsigned NOT NULL default '0',
      entryid int(10) unsigned NOT NULL default '0',
      PRIMARY KEY  (categoryid, entryid)
index 92fc5cf5c7ee40c95a654a3738d63df692987114..87f5cc75d4d02fdbf575c85fea196849298d0cce 100644 (file)
@@ -58,6 +58,7 @@ CREATE TABLE prefix_glossary_categories (
 #
 
 CREATE TABLE prefix_glossary_entries_categories (
+     id SERIAL,
      categoryid int4 NOT NULL default '0',
      entryid int4 NOT NULL default '0',
      PRIMARY KEY  (categoryid, entryid)
index aaf3e9b12bf5dc66f94704b874106a9eed9bc759..ca79cc0accc2b837114e2abd46b9d93c39371f24 100644 (file)
@@ -5,9 +5,9 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2003092100;  // The current module version (Date: YYYYMMDDXX)
+$module->version  = 2003092101;  // The current module version (Date: YYYYMMDDXX)
 $module->cron     = 0;           // Period for cron to check this module (secs)
 
-$release = "0.3.1 development";   // User-friendly version number
+$release = "0.3.2 development";   // User-friendly version number
 
 ?>