Fixed a typo in the MySQL database definition that only shows

up when adding resources to courses with IDs higher than 255
This commit is contained in:
moodler
2003-08-20 13:06:11 +00:00
parent e6ea5c0664
commit 3ec7dc5704
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -4,6 +4,12 @@ function resource_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
global $CFG;
if ($oldversion < 2003082000) {
table_column("resource", "course", "course", "integer", "10", "unsigned", "0");
}
return true;
}
+1 -1
View File
@@ -16,7 +16,7 @@
CREATE TABLE prefix_resource (
id int(10) unsigned NOT NULL auto_increment,
course tinyint(10) unsigned NOT NULL default '0',
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
type tinyint(4) NOT NULL default '0',
reference varchar(255) default NULL,
+1 -1
View File
@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2003072000;
$module->version = 2003082000;
$module->cron = 0;
?>