mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed bug in table creation - (it was creating a null table!)
This commit is contained in:
parent
0ca1825cab
commit
2fdb54b819
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user