From ab6c5759f786fba5c383be3ff850df6b6cea9130 Mon Sep 17 00:00:00 2001 From: geoffhumphrey <507357@den-e88543m.la.frd.directv.com> Date: Fri, 12 Feb 2016 07:43:21 -0700 Subject: [PATCH] Update Bug Fix for 2.0.1 --- lib/preflight.lib.php | 4 +--- setup.php | 2 +- sql/bcoem_baseline_2.0.X.sql | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/preflight.lib.php b/lib/preflight.lib.php index 58c1bbab..6a477eb0 100644 --- a/lib/preflight.lib.php +++ b/lib/preflight.lib.php @@ -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")) { @@ -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) { diff --git a/setup.php b/setup.php index 44d11b65..b17051f6 100644 --- a/setup.php +++ b/setup.php @@ -47,7 +47,7 @@ - Update to BCOE&M <?php echo $current_version; ?> + Setup BCOE&M <?php echo $current_version; ?> diff --git a/sql/bcoem_baseline_2.0.X.sql b/sql/bcoem_baseline_2.0.X.sql index 3f45f164..f5eff7f1 100644 --- a/sql/bcoem_baseline_2.0.X.sql +++ b/sql/bcoem_baseline_2.0.X.sql @@ -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 ;