in['mark'] == 0)
{
?>
Welcome to Bugdar
This upgrade will take from Bugdar 1.1.0 Release Candidate 1 to Bugdar 1.1.0 (final).
Not much has to be done, we just have a quick rename and version number change.
To begin the process, please click the button below.
in['mark'] == 1)
{
?>
Rename Automatic Actions
Simply for aesthetic's sake, we've ranamed "Automatic Actions" to "Automations." This does all the necessary database changes to make that rename work internally.
query("ALTER TABLE " . TABLE_PREFIX . "autoaction RENAME " . TABLE_PREFIX . "automation");
echo "Renaming datbase table
\n";
$db->query("DELETE FROM " . TABLE_PREFIX . "datastore WHERE title = 'autoaction'");
echo "Clearing old datastore information
\n";
build_automations();
echo "Rebuilding the automations cahce
\n";
$topic = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "fieldhelp WHERE keystring = 'newreply'");
if (md5($topic['body']) == '7e1154340454ca6d8f8ba47aab057c23')
{
$topic = $db->query("UPDATE " . TABLE_PREFIX . "fieldhelp SET body = 'Here you can specify additional comments. If you do not change any fields, this will merely attach a comment.
The \"Automation\" drop-down next to this box (which may be hidden) will allow you to perform a common task. These administrator-defined tasks can change any of the bug fields automatically and then add an automatic reply. If you change a field that will be altered by the action, the action\'s change will take precedence. Also, if you enter a comment and the action specifies a comment, the automatic comment will be attached to yours.' WHERE keystring = 'newreply'");
echo "Updating user help topic on new replies
\n";
}
else
{
echo "ALERT: You have modified your user help topic for newreply which means that the help item was not updated for the renaming of 'Automatic Action' to 'Automation'
\n";
}
}
// ###################################################################
if ($input->in['mark'] == 2)
{
?>
Version Number Change
This step finishes the upgrade by inreasing your version number.
query("UPDATE " . TABLE_PREFIX . "setting SET value = '1.1.0' WHERE varname = 'trackerversion'");
build_settings();
?>
... done.