Changes between Version 29 and Version 30 of mark_deduction
- Timestamp:
- 2012-02-25T07:32:25Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mark_deduction
v29 v30 10 10 * Two new tables have been added : Penalty, and User_grade_penalty. 11 11 * Run the attached SQL queries to update your current database. 12 {{{ 13 #!sql 14 CREATE TABLE `penalties` ( 15 `id` int(11) NOT NULL AUTO_INCREMENT, 16 `event_id` int(11) DEFAULT NULL, 17 `days_late` int(11) NOT NULL, 18 `percent_penalty` int(11) NOT NULL, 19 PRIMARY KEY (`id`), 20 KEY `fk_events` (`event_id`) 21 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 22 23 ALTER TABLE `penalties` 24 ADD CONSTRAINT `fk_events` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE; 25 }}} 12 26 == Implementation == 13 27 * An instructor or admin can choose to apply ONE late penalty scale to an event.