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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2003072000;
|
||||
$module->version = 2003082000;
|
||||
$module->cron = 0;
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user