Fixed two bugs with interest survey.

1)  Removed UNIQUE from selections.selection
2)  SELECT query added contact_id

nicer
This commit is contained in:
Jonathan Rosenbaum
2015-03-06 18:39:59 +00:00
parent 5a36eea47b
commit 71aa35af00
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ CREATE TABLE IF NOT EXISTS options (
--
CREATE TABLE IF NOT EXISTS selections (
contact_id int(10) unsigned,
selection int(10) unsigned UNIQUE,
selection int(10) unsigned,
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