Fixed bug in table creation - (it was creating a null table!)

This commit is contained in:
moodler 2003-02-25 03:53:50 +00:00
parent 0ca1825cab
commit 2fdb54b819
2 changed files with 8 additions and 8 deletions

View File

@ -254,13 +254,13 @@ function main_upgrade($oldversion=0) {
execute_sql(" ALTER TABLE `log_display` CHANGE `module` `module` VARCHAR( 20 ) NOT NULL ");
}
if ($oldversion < 2003032400) {
execute_sql("CREATE TABLE `$CFG->prefix_user_coursecreators` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM COMMENT='One record per course creator'");
if ($oldversion < 2003032500) {
modify_database("", "CREATE TABLE `prefix_user_coursecreators` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM COMMENT='One record per course creator';");
}
return true;

View File

@ -5,7 +5,7 @@
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
$version = 2003032400; // The current version is a date (YYYYMMDDXX)
$version = 2003032500; // The current version is a date (YYYYMMDDXX)
$release = "1.0.9 development"; // User-friendly version number