source: trunk/Mars/hawc/processing/DiskToDB/prop_trigger.sql@ 20105

Last change on this file since 20105 was 20105, checked in by maslowski, 3 years ago
Added Triggers for DataOnDisk and a seperate table for auxiliary files.
File size: 310 bytes
Line 
1delimiter $$
2CREATE TRIGGER prop_trigger
3BEFORE UPDATE ON DataOnDisk
4FOR EACH ROW
5BEGIN
6 IF NEW.header > 0 THEN
7 SET NEW.calibration = 6;
8 END IF;
9 IF NEW.calibration > 0 THEN
10 SET NEW.auxiliary = 6;
11 SET NEW.callisto = 6;
12 END IF;
13 IF NEW.callisto > 0 THEN
14 SET NEW.star = 6;
15 END IF;
16END; $$
17delimiter ;
Note: See TracBrowser for help on using the repository browser.