Files
auth-site/html/forums/install/resources/upgrade33.php
T
2018-04-29 02:36:24 -07:00

39 lines
832 B
PHP

<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/
/**
* Upgrade Script: 1.8.4
*/
$upgrade_detail = array(
"revert_all_templates" => 0,
"revert_all_themes" => 0,
"revert_all_settings" => 0
);
@set_time_limit(0);
function upgrade33_dbchanges()
{
global $db, $output;
$output->print_header("Updating Database");
echo "<p>Performing necessary upgrade queries...</p>";
flush();
if($db->field_exists('2fasecret', 'adminoptions') && !$db->field_exists('authsecret', 'adminoptions'))
{
$db->rename_column('adminoptions', '2fasecret', 'authsecret', "varchar(16) NOT NULL default ''");
}
$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("33_done");
}