Skip to content

Commit

Permalink
Update Bug Fix for 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhumphrey committed Feb 12, 2016
1 parent cd70d72 commit ab6c575
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/preflight.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ function check_update($column_name, $table_name) {
$version_check = mysql_query($query_version_check, $brewing) or die(mysql_error());
$row_version_check = mysql_fetch_assoc($version_check);

// For 2.0.1.0 and update is NOT needed, commenting out the next few lines
// For 2.0.1.0 and update is NOT needed

/*
// For updating to 2.0.0, check if "sponsorEnable" column is in the sponsors table
// If so, run the update
if (!check_update("sponsorEnable", $prefix."sponsors")) {
Expand All @@ -73,7 +72,6 @@ function check_update($column_name, $table_name) {
$setup_relocate = "Location: ".$base_url."update.php";

}
*/

if ($row_version_check['version'] != $current_version) {

Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Update to BCOE&amp;M <?php echo $current_version; ?></title>
<title>Setup BCOE&amp;M <?php echo $current_version; ?></title>

<!-- Load jQuery / http://jquery.com/ -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions sql/bcoem_baseline_2.0.X.sql
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ CREATE TABLE IF NOT EXISTS `baseline_sponsors` (
`sponsorText` text,
`sponsorLocation` text,
`sponsorLevel` tinyint(1) DEFAULT NULL,
`sponsorEnable` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Expand Down

0 comments on commit ab6c575

Please sign in to comment.