Puts all volunteer data into one column called "volunteer".

* Reflects the changes in json, and adds more definition to the json callback.
This commit is contained in:
Jonathan Rosenbaum
2017-07-29 20:29:18 +00:00
parent 81e261bc6a
commit 4feb5022eb
2 changed files with 15 additions and 21 deletions
+7 -2
View File
@@ -68,18 +68,23 @@ INSERT INTO projects (project_id, date_established, active, public) VALUES
-- SELECT CONCAT_WS('","', col1, col2, ..., coln) FROM my_table;
--
-- Added waiver
--
-- Added a volunteer column to keep track of volunteer hours redeemed, max bike earned, and
-- the current year the hours apply to, when a new year begins everything is zeroed out.
DELETE FROM shop_hours;
DELETE FROM contacts;
ALTER TABLE contacts AUTO_INCREMENT = 1;
ALTER TABLE contacts ADD waiver tinyint(1) NOT NULL DEFAULT '0';
ALTER TABLE contacts ADD volunteer varchar(15) NOT NULL DEFAULT '';
INSERT INTO contacts (
contact_id, first_name, middle_initial, last_name, email, phone, address1,
address2, city, state, country, receive_newsletter, date_created,
invited_newsletter, DOB, pass, zip, hidden, location_name, location_type,
waiver
waiver, volunteer
) VALUES
(1,"Jonathan","","Rosenbaum","info@positivespin.org","","","","Morgantown","WV","","1","2014-12-12 18:19:35",0,"2005-11-09","test","26501","0","",NULL, 1);
(1,"Jonathan","","Rosenbaum","info@positivespin.org","","","","Morgantown","WV","","1","2014-12-12 18:19:35",0,"2005-11-09","test","26501","0","",NULL, 1,"");
-- Set-up transaction types
-- This is object orienteed like :)