Feature #35
Updated by Cyber Collie about 1 month ago
The checks on inserts need to be relaxed to allow questions to be inserted as children of proposals and disputes. Inserting questions as children of questions is still prohibited. Also inserting proposals as children of proposals was not prohibited until now, but should be. There also needs to be a new row in discussion_elements that tracks the amount of children of an element that is a question. This column should be named "question_count". It should be counted up when a new question is inserted. ``` sql ALTER TABLE `polarity`.`discussion_elements` ADD COLUMN `question_count` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `proposal_count`; ``` This new value also needs to be sent to the client when fetching discussions and when searching. discussions.