Skip to content

Commit

Permalink
Prep for 2.1.4 Release; Bug Fix for Issue #628
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhumphrey committed Jun 28, 2016
1 parent 2f52d90 commit 95f931b
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 153 deletions.
5 changes: 2 additions & 3 deletions admin/competition_info.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@
<p>Each entry will consist of 12 to 22 ounce capped bottles or corked bottles that are void of all identifying information, including labels and embossing. Printed caps are allowed, but must be blacked out completely.</p>
<p>12oz brown glass bottles are preferred; however, green and clear glass will be accepted. Swing top bottles will likewise be accepted as well as corked bottles.</p>
<p>Bottles will not be returned to contest entrants.</p>
<p>Completed entry forms and recipe sheets must be submitted with all entries, and can be printed directly from this website. Entry forms should be attached to bottle labels by the method specified on the bottle label.</p>
<p>Please fill out the entry forms completely. Be meticulous about noting any special ingredients that must be specified. Failure to note such ingredients may impact the judges' scoring of your entry.</p>
<p>Brewers are not limited to one entry in each category but may only enter each subcategory once.</p>
<p>All requisite paperwork must be submitted with each entry and can be printed directly from this website. Entry paperwork should be attached to bottles by the method specified on the bottle label.</p>
<p>Be meticulous about noting any special ingredients that must be specified. Failure to note such ingredients may impact the judges' scoring of your entry.</p>
<?php } ?>
</textarea>
<span id="helpBlock" class="help-block">Indicate the number of bottles, size, color, etc. Edit default text as needed.</span>
Expand Down
4 changes: 2 additions & 2 deletions includes/current_version.inc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// This file will be deprecated after the release of version 1.2.1.0
// Version information will be stored in the system table starting with version 1.2.1.0
$current_version = "2.1.3.0";
$current_version_display = "2.1.3";
$current_version = "2.1.4.0";
$current_version_display = "2.1.4";
?>
119 changes: 3 additions & 116 deletions sql/bcoem_baseline_2.1.X.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--
-- ------------------------------------------------------------------------------------
--
-- UPDATED 05.31.2016 for Version 2.1.3.0
-- UPDATED 06.29.2016 for Version 2.1.4.0
--
-- ------------------------------------------------------------------------------------
--
Expand Down Expand Up @@ -1186,7 +1186,7 @@ CREATE TABLE IF NOT EXISTS `baseline_system` (
--

INSERT INTO `baseline_system` (`id`, `version`, `version_date`, `data_check`, `setup`) VALUES
(1, '2.1.3.0', '2016-05-31', '2016-05-31 11:00:01', 1);
(1, '2.1.4.0', '2016-06-30', '2016-06-30 11:00:01', 1);

-- --------------------------------------------------------

Expand Down Expand Up @@ -1353,121 +1353,8 @@ ALTER TABLE `baseline_system`
--
ALTER TABLE `baseline_users`
ADD PRIMARY KEY (`id`);


--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `baseline_archive`
--
ALTER TABLE `baseline_archive`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_brewer`
--
ALTER TABLE `baseline_brewer`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_brewing`
--
ALTER TABLE `baseline_brewing`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_contacts`
--
ALTER TABLE `baseline_contacts`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_drop_off`
--
ALTER TABLE `baseline_drop_off`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_judging_assignments`
--
ALTER TABLE `baseline_judging_assignments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_judging_flights`
--
ALTER TABLE `baseline_judging_flights`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_judging_locations`
--
ALTER TABLE `baseline_judging_locations`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_judging_preferences`
--
ALTER TABLE `baseline_judging_preferences`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_judging_scores`
--
ALTER TABLE `baseline_judging_scores`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_judging_scores_bos`
--
ALTER TABLE `baseline_judging_scores_bos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_judging_tables`
--
ALTER TABLE `baseline_judging_tables`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_mods`
--
ALTER TABLE `baseline_mods`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_preferences`
--
ALTER TABLE `baseline_preferences`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_special_best_data`
--
ALTER TABLE `baseline_special_best_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_special_best_info`
--
ALTER TABLE `baseline_special_best_info`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_sponsors`
--
ALTER TABLE `baseline_sponsors`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_staff`
--
ALTER TABLE `baseline_staff`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `baseline_styles`
--
ALTER TABLE `baseline_styles`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=227;
--
-- AUTO_INCREMENT for table `baseline_style_types`
--
ALTER TABLE `baseline_style_types`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `baseline_system`
--
ALTER TABLE `baseline_system`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `baseline_users`
--
ALTER TABLE `baseline_users`
MODIFY `id` int(8) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
80 changes: 48 additions & 32 deletions update/1.3.2.0_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@
// Adding style set preferences
// -----------------------------------------------------------

$updateSQL = "ALTER TABLE `".$prefix."preferences` ADD `prefsStyleSet` VARCHAR( 20 ) NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("prefsStyleSet",$prefix."preferences")) {
$updateSQL = "ALTER TABLE `".$prefix."preferences` ADD `prefsStyleSet` VARCHAR( 20 ) NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."preferences` ADD `prefsAutoPurge` TINYINT( 1 ) NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("prefsAutoPurge",$prefix."preferences")) {
$updateSQL = "ALTER TABLE `".$prefix."preferences` ADD `prefsAutoPurge` TINYINT( 1 ) NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$output .= "<li>Preferences table altered successfully.</li>";

Expand All @@ -31,35 +35,47 @@
// shift carbonation, sweetnes, and strength to DB side
// -----------------------------------------------------------

$updateSQL = "ALTER TABLE `".$prefix."styles` CHANGE `brewStyleJudgingLoc` `brewStyleVersion` VARCHAR(20) NULL DEFAULT NULL;";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (check_update("brewStyleJudgingLoc",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` CHANGE `brewStyleJudgingLoc` `brewStyleVersion` VARCHAR(20) NULL DEFAULT NULL;";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleStrength` INT(1) NULL COMMENT 'Requires strength? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("brewStyleStrength",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleStrength` INT(1) NULL COMMENT 'Requires strength? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleCarb` INT(1) NULL COMMENT 'Requires carbonation? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("brewStyleCarb",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleCarb` INT(1) NULL COMMENT 'Requires carbonation? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleSweet` INT(1) NULL COMMENT 'Requires sweetness? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("brewStyleSweet",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleSweet` INT(1) NULL COMMENT 'Requires sweetness? 0=No, 1=Yes';";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleCategory` VARCHAR(255) NULL DEFAULT NULL AFTER `brewStyle`;";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("brewStyleCategory",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleCategory` VARCHAR(255) NULL DEFAULT NULL AFTER `brewStyle`;";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleTags` VARCHAR(255) NULL DEFAULT NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
if (!check_update("brewStyleTags",$prefix."styles")) {
$updateSQL = "ALTER TABLE `".$prefix."styles` ADD `brewStyleTags` VARCHAR(255) NULL DEFAULT NULL";
mysqli_select_db($connection,$database);
mysqli_real_escape_string($connection,$updateSQL);
$result = mysqli_query($connection,$updateSQL) or die (mysqli_error($connection));
}

//if (check_db_table_column("preferences","prefsStyleSet"))
$output .= "<li>Styles table altered successfully.</li>";
Expand Down

0 comments on commit 95f931b

Please sign in to comment.