This completes the interest survey logic.

1).  In confs, update works well, delete has an issue with on delete cascade.
2).  Saves state properly.  Now just need to create a front-end to query for volunteer organizers.
This commit is contained in:
Jonathan Rosenbaum
2015-03-06 08:27:15 +00:00
parent 433ab1a224
commit e9e3a0ef66
3 changed files with 60 additions and 32 deletions
+5 -5
View File
@@ -200,17 +200,17 @@ ALTER TABLE transaction_log MODIFY description text(2048) DEFAULT NULL;
--
CREATE TABLE IF NOT EXISTS options (
option_name_id int(10) unsigned NOT NULL AUTO_INCREMENT,
option_name varchar(64) NOT NULL,
option_name varchar(64) NOT NULL UNIQUE,
PRIMARY KEY (option_name_id)
);
) DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
-- selections
-- stores the volunteer interest selections made by people
--
CREATE TABLE IF NOT EXISTS selections (
contact_id int(10) unsigned,
selection int(10) unsigned,
selection_value int(10) unsigned,
selection int(10) unsigned UNIQUE,
selection_value text,
FOREIGN KEY (contact_id) REFERENCES contacts (contact_id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (selection) REFERENCES options (option_name_id) ON DELETE CASCADE ON UPDATE CASCADE
);
) DEFAULT CHARSET=latin1;