Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mybb#1840 Upgrade to 1.8.4 fails with SQLite
- Loading branch information
Showing
7 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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.1, 1.8.2, 1.8.3 or 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; | ||
|
||
if($db->field_exists('2fasecret', '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"); | ||
} |