     FOREIGN KEY (`experiment`)
     REFERENCES `crowdcontrol`.`Experiment` (`id_experiment`)
     ON DELETE RESTRICT
-    ON UPDATE RESTRICT,
+    ON UPDATE CASCADE,
   CONSTRAINT `workerRated`
     FOREIGN KEY (`worker_id`)
     REFERENCES `crowdcontrol`.`Worker` (`id_worker`)

  CONSTRAINT `idExperimentAnswers`
    FOREIGN KEY (`experiment`)
    REFERENCES `crowdcontrol`.`Experiment` (`id_experiment`)
    ON DELETE CASCADE
    ON UPDATE CASCADE,
  CONSTRAINT `workerAnswered`
    FOREIGN KEY (`worker_id`)

-- MySQL Script generated by MySQL Workbench
-- Sun Mar 20 19:47:47 2016
-- Model: New Model    Version: 1.0
-- MySQL Workbench Forward Engineering

