Stores comments from interest inventory as 1.

This commit is contained in:
Jonathan Rosenbaum
2015-03-06 09:38:46 +00:00
parent ac1aea3651
commit 5a36eea47b
2 changed files with 19 additions and 5 deletions
+5 -2
View File
@@ -202,7 +202,7 @@ CREATE TABLE IF NOT EXISTS options (
option_name_id int(10) unsigned NOT NULL AUTO_INCREMENT,
option_name varchar(64) NOT NULL UNIQUE,
PRIMARY KEY (option_name_id)
) DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
-- selections
-- stores the volunteer interest selections made by people
@@ -213,4 +213,7 @@ CREATE TABLE IF NOT EXISTS selections (
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;
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- create the comment row first
INSERT INTO options (option_name) VALUES("comments");