pmsipilot/Jenkins-Khan — pull request #76 by pmartin (2012-04-05 10:28:29+00:00)
Title: Api branch delete

* Added a "delete" feature to the API, to delete a group + all its jobs
* Updated the schema, to use a delete cascade
* Reworked the delete action (in front), to use that cascade

SQL to alter an existing DB :

ALTER TABLE `jenkins_run` DROP FOREIGN KEY `jenkins_run_FK_1` ;
ALTER TABLE `jenkins_run`
ADD CONSTRAINT `jenkins_run_FK_1`
FOREIGN KEY (`jenkins_group_run_id` )
REFERENCES `jenkins_group_run` (`id` )
ON DELETE CASCADE
ON UPDATE RESTRICT;