History

GSF.TimeSeries: 1) Fixed an issue in DatabaseConfigurationLoader where an empty TrackedChange table would cause the configuration data set version to revert to 0. 2) Fixed an issue in DatabaseConfigurationLoader where records that already existed in the configuration data set would be added anyway when augmenting configuration. 3) Fixed various issues in the Oracle database script.

StephenCWills committed 12 years ago

Commit 3dd3d741 parent 8cbd75f5 files · +232 −101Browse files

Showing the changes to Source/Libraries/GSF.TimeSeries/Data/MySQL/GSFSchema.sql (1 of 5 files). Show all

Unified · Split

Source/Libraries/GSF.TimeSeries/Data/MySQL/GSFSchema.sql+5−0
@@ -1485,6 +1485,11 @@ CREATE TRIGGER Measurement_UpdateTracker AFTER UPDATE ON Measurement FOR EACH RO · 1484 unmodified lines
14851485 BEGIN
14861486 INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('Measurement', 'PointID', NEW.PointID);
14871487 INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('ActiveMeasurement', 'SignalID', NEW.SignalID);
1488+
1489+ CASE WHEN OLD.SignalID <> NEW.SignalID
1490+ THEN
1491+ INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('ActiveMeasurement', 'SignalID', OLD.SignalID);
1492+ END;
14881493 END$$
14891494 DELIMITER ;
14901495

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t