Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

*** empty log message ***

  • Loading branch information...
commit 615453c9c588d102e7c1e92e530681053e59e1ce 1 parent 71009e4
willcast authored
7 mod/glossary/db/mysql.php
View
@@ -55,9 +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");
- }
+ if ( $oldversion < 2003092102 ) {
+ execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` DROP PRIMARY KEY ");
+ execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` ADD `ID` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST");
+ }
return true;
}
2  mod/glossary/db/mysql.sql
View
@@ -61,7 +61,7 @@ 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)
+ PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='categories of each glossary entry';
#
2  mod/glossary/db/postgres7.sql
View
@@ -61,7 +61,7 @@ CREATE TABLE prefix_glossary_entries_categories (
id SERIAL,
categoryid int4 NOT NULL default '0',
entryid int4 NOT NULL default '0',
- PRIMARY KEY (categoryid, entryid)
+ PRIMARY KEY (id)
);
#
2  mod/glossary/version.php
View
@@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2003092101; // The current module version (Date: YYYYMMDDXX)
+$module->version = 2003092102; // The current module version (Date: YYYYMMDDXX)
$module->cron = 0; // Period for cron to check this module (secs)
$release = "0.3.2 development"; // User-friendly version number
Please sign in to comment.
Something went wrong with that request. Please try again.