Permalink
Browse files

*** empty log message ***

  • Loading branch information...
willcast
willcast committed Sep 21, 2003
1 parent 50164eb commit 71009e400de409211fff37c58818e2a649d3b1c7
Showing with 8 additions and 2 deletions.
  1. +4 −0 mod/glossary/db/mysql.php
  2. +1 −0 mod/glossary/db/mysql.sql
  3. +1 −0 mod/glossary/db/postgres7.sql
  4. +2 −2 mod/glossary/version.php
@@ -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;
}
@@ -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)
@@ -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)
View
@@ -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
?>

0 comments on commit 71009e4

Please sign in to comment.