Changes between Version 30 and Version 31 of mark_deduction


Ignore:
Timestamp:
2012-02-25T07:33:33Z (13 years ago)
Author:
Pan Luo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mark_deduction

    v30 v31  
    2323ALTER TABLE `penalties`
    2424  ADD CONSTRAINT `fk_events` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE;
     25
     26CREATE TABLE `user_grade_penalties` (
     27  `id` int(11) NOT NULL AUTO_INCREMENT,
     28  `penalty_id` int(11) DEFAULT NULL,
     29  `grp_event_id` int(11) NOT NULL,
     30  `user_id` int(11) DEFAULT NULL,
     31  PRIMARY KEY (`id`),
     32  KEY `fk_penalties` (`penalty_id`),
     33  KEY `fk_users` (`user_id`)
     34) ENGINE=InnoDB  DEFAULT CHARSET=latin1;
     35
     36ALTER TABLE `user_grade_penalties`
     37  ADD CONSTRAINT `fk_penalties` FOREIGN KEY (`penalty_id`) REFERENCES `penalties` (`id`) ON DELETE CASCADE,
     38  ADD CONSTRAINT `fk_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
    2539}}}
     40
    2641== Implementation ==
    2742* An instructor or admin can choose to apply ONE late penalty scale to an event.