File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -869,6 +869,7 @@ ALTER TABLE `accelerometer_readings`
869
869
ALTER TABLE ` adc_mapping`
870
870
ADD CONSTRAINT ` adc_mapping_ibfk_2` FOREIGN KEY (` name` ) REFERENCES ` adc_names` (` name` ) ON UPDATE CASCADE,
871
871
ADD CONSTRAINT ` adc_mapping_ibfk_1` FOREIGN KEY (` adc_id` ) REFERENCES ` adc_ids` (` id` ) ON UPDATE CASCADE;
872
+ ADD CONSTRAINT ` adc_mapping_ibfk_3` FOREIGN KEY ( ` device_id` ) REFERENCES ` feshie` .` devices` (` id` ) ON DELETE RESTRICT ON UPDATE CASCADE ;
872
873
873
874
--
874
875
-- Constraints for table `adc_readings`
@@ -938,6 +939,11 @@ ALTER TABLE `onewire_readings`
938
939
ALTER TABLE ` pressure_readings`
939
940
ADD CONSTRAINT ` pressure_readings_ibfk_1` FOREIGN KEY (` device` ) REFERENCES ` devices` (` id` ) ON UPDATE CASCADE;
940
941
942
+ --
943
+ -- Constraints for table `rain_readings`
944
+ --
945
+ ALTER TABLE ` rain_readings` ADD FOREIGN KEY ( ` device_id` ) REFERENCES ` feshie` .` devices` (` id` ) ON DELETE RESTRICT ON UPDATE CASCADE ;
946
+
941
947
--
942
948
-- Constraints for table `river_depth_readings`
943
949
--
You can’t perform that action at this time.
0 commit comments