diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 0a3e7b0..a949a93 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -126 +128 diff --git a/db/db.update.128.sql b/db/db.update.128.sql new file mode 100644 index 0000000..22c6565 --- /dev/null +++ b/db/db.update.128.sql @@ -0,0 +1,6 @@ +INSERT INTO `config` (`var`, `val`, `category`, `type`, `type_values`, `ord`, `description`, `year`) VALUES +('fair_stats_info', 'yes', 'Science Fairs', 'yesno', '', 600, 'Gather Stats: Information about the fair (date, location, budget, charity info).', -1), +('fair_stats_next_chair', 'yes', 'Science Fairs', 'yesno', '', 700, 'Gather Stats: Chairperson name and contact info for the next year', -1), +('fair_stats_scholarships', 'yes', 'Science Fairs', 'yesno', '', 800, 'Gather Stats: Scholarships given out by the fair', -1), +('fair_stats_delegates', 'yes', 'Science Fairs', 'yesno', '', '900', 'Gather Stats: CWSF Delegate names/email/jacket size', '-1'); + diff --git a/xmltransport.php b/xmltransport.php index 41f91f1..4fca291 100644 --- a/xmltransport.php +++ b/xmltransport.php @@ -57,7 +57,10 @@ $year = $data['getstats'][0]['year'][0]; $vars = array('fair_stats_participation', 'fair_stats_schools_ext', 'fair_stats_minorities', 'fair_stats_guests', - 'fair_stats_sffbc_misc'); + 'fair_stats_sffbc_misc', 'fair_stats_info', + 'fair_stats_next_chair', 'fair_stats_scholarships', + 'fair_stats_delegates', + ); foreach($vars as $v) { $response['statconfig'][$v] = $config[$v]; }