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
1485BEGIN1485BEGIN
1486 INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('Measurement', 'PointID', NEW.PointID);1486 INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('Measurement', 'PointID', NEW.PointID);
1487 INSERT INTO TrackedChange(TableName, PrimaryKeyColumn, PrimaryKeyValue) VALUES('ActiveMeasurement', 'SignalID', NEW.SignalID);1487 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;
1488END$$1493END$$
1489DELIMITER ;1494DELIMITER ;
1490 1495

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