mirror of
https://github.com/moodle/moodle.git
synced 2025-05-04 23:41:50 +02:00
MOved updating of user forum into the right place
This commit is contained in:
parent
b63fc63d60
commit
b71772e25e
@ -1366,6 +1366,10 @@ function main_upgrade($oldversion=0) {
|
|||||||
$result = table_column('event', '', 'repeatid', 'int', '10', 'unsigned', '0', 'not null', 'userid') && $result;
|
$result = table_column('event', '', 'repeatid', 'int', '10', 'unsigned', '0', 'not null', 'userid') && $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($oldversion < 2005042400) { // Add user tracking prefs field.
|
||||||
|
table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '1', 'not null', 'autosubscribe');
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1082,6 +1082,10 @@ function main_upgrade($oldversion=0) {
|
|||||||
$result = table_column('event', '', 'repeatid', 'int', '10', 'unsigned', '0', 'not null', 'userid') && $result;
|
$result = table_column('event', '', 'repeatid', 'int', '10', 'unsigned', '0', 'not null', 'userid') && $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($oldversion < 2005042400) { // Add user tracking prefs field.
|
||||||
|
table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '1', 'not null', 'autosubscribe');
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,10 +201,6 @@ function forum_upgrade($oldversion) {
|
|||||||
) COMMENT=\'Tracks each users untracked forums.\';');
|
) COMMENT=\'Tracks each users untracked forums.\';');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oldversion < 2005042301) { // Add user tracking prefs field.
|
|
||||||
modify_database('','ALTER TABLE prefix_user ADD
|
|
||||||
`trackforums` TINYINT( 1 ) UNSIGNED DEFAULT \'1\' NOT NULL AFTER `autosubscribe` ;');
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -141,10 +141,6 @@ function forum_upgrade($oldversion) {
|
|||||||
);');
|
);');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oldversion < 2005042301) { // Add user tracking prefs field.
|
|
||||||
modify_database('','ALTER TABLE prefix_user ADD
|
|
||||||
trackforums integer default 0 NOT NULL;');
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
// This is compared against the values stored in the database to determine
|
// This is compared against the values stored in the database to determine
|
||||||
// whether upgrades should be performed (see lib/db/*.php)
|
// whether upgrades should be performed (see lib/db/*.php)
|
||||||
|
|
||||||
$version = 2005042300; // YYYYMMDD = date
|
$version = 2005042400; // YYYYMMDD = date
|
||||||
// XY = increments within a single day
|
// XY = increments within a single day
|
||||||
|
|
||||||
$release = '1.5 ALPHA'; // Human-friendly version name
|
$release = '1.5 ALPHA'; // Human-friendly version name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user