issues.sql 470 B

12345678
  1. --
  2. -- Constraints for table `issues`
  3. --
  4. ALTER TABLE `issues`
  5. ADD CONSTRAINT `issues_ibfk_1` FOREIGN KEY (`p_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  6. ADD CONSTRAINT `issues_ibfk_2` FOREIGN KEY (`u_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
  7. ADD CONSTRAINT `issues_ibfk_3` FOREIGN KEY (`pr_id`) REFERENCES `priorities` (`id`),
  8. ADD CONSTRAINT `issues_ibfk_4` FOREIGN KEY (`s_id`) REFERENCES `statuses` (`id`);