MOved updating of user forum into the right place

This commit is contained in:
moodler 2005-04-25 18:07:14 +00:00
parent b63fc63d60
commit b71772e25e
5 changed files with 9 additions and 9 deletions

View File

@ -1366,6 +1366,10 @@ function main_upgrade($oldversion=0) {
$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;
}

View File

@ -1082,6 +1082,10 @@ function main_upgrade($oldversion=0) {
$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;
}

View File

@ -201,10 +201,6 @@ function forum_upgrade($oldversion) {
) 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;

View File

@ -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;

View File

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005042300; // YYYYMMDD = date
$version = 2005042400; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.5 ALPHA'; // Human-friendly version name