mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Fixed two bugs with interest survey.
1) Removed UNIQUE from selections.selection 2) SELECT query added contact_id nicer
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user