2003-10-06 12:00:28 +00:00
|
|
|
<?PHP // $Id$
|
|
|
|
|
|
|
|
function dialogue_upgrade($oldversion) {
|
|
|
|
// This function does anything necessary to upgrade
|
|
|
|
// older versions to match current functionality
|
|
|
|
|
|
|
|
global $CFG;
|
|
|
|
|
|
|
|
if ($oldversion < 2003100500) {
|
|
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}dialogue` ADD `multipleconversations` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `dialoguetype`");
|
|
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}dialogue_conversations` ADD `subject` VARCHAR(100) NOT NULL DEFAULT ''");
|
|
|
|
}
|
|
|
|
|
2003-10-13 12:41:36 +00:00
|
|
|
if ($oldversion < 2003101300) {
|
|
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}dialogue_conversations` ADD `seenon` INT(10) unsigned NOT NULL DEFAULT '0' AFTER `closed`");
|
|
|
|
}
|
|
|
|
|
2003-10-06 12:00:28 +00:00
|
|
|
$result = true;
|
|
|
|
return $result;
|
|
|
|
}
|
2003-11-03 02:59:09 +00:00
|
|
|
|
|
|
|
?>
|