Skip to content

Commit

Permalink
Updated GSF dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfbuildbot committed Sep 4, 2024
1 parent e4a3f8e commit efcc039
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 14 deletions.
14 changes: 8 additions & 6 deletions Source/Data/MySQL/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1872,14 +1872,14 @@ FROM AlarmDevice
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;
SELECT 2 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INT NOT NULL,
CompressionMinTime BIGINT NOT NULL DEFAULT 0,
CompressionMaxTime BIGINT NOT NULL DEFAULT 0,
CompressionLimit DOUBLE NOT NULL DEFAULT 0.0,
CONSTRAINT PK_CompressionSetting PRIMARY KEY (PointID ASC)
CONSTRAINT PK_CompressionSetting PRIMARY KEY (PointID ASC)
);

CREATE VIEW NodeCompressionSetting AS
Expand All @@ -1892,11 +1892,13 @@ SELECT
FROM CompressionSetting CROSS JOIN Node;

CREATE TABLE EventMarker(
ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
ParentID INTEGER NULL,
ID INT AUTO_INCREMENT NOT NULL,
ParentID INT NULL,
Source VARCHAR(200) NULL,
StartTime DATETIME NULL,
StopTime DATETIME NULL,
Notes VARCHAR(max) NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
Notes TEXT NULL,
CONSTRAINT PK_EventMarker PRIMARY KEY (ID ASC)
);

ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);
5 changes: 3 additions & 2 deletions Source/Data/Oracle/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2819,7 +2819,7 @@ FROM AlarmDevice
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber
SELECT 2 AS VersionNumber
FROM dual;

CREATE TABLE CompressionSetting(
Expand All @@ -2842,7 +2842,7 @@ FROM CompressionSetting CROSS JOIN Node;

CREATE TABLE EventMarker(
ID NUMBER NOT NULL,
ParentID Number NULL,
ParentID NUMBER NULL,
Source VARCHAR2(200) NULL,
StartTime DATE NULL,
StopTime DATE NULL,
Expand All @@ -2859,3 +2859,4 @@ CREATE TRIGGER AI_EventMarker BEFORE INSERT ON EventMarker
FOR EACH ROW BEGIN SELECT SEQ_EventMarker.nextval INTO :NEW.ID FROM dual;
END;

ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);
6 changes: 3 additions & 3 deletions Source/Data/PostgreSQL/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ FROM AlarmDevice
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;
SELECT 2 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INTEGER NOT NULL PRIMARY KEY,
Expand All @@ -1926,6 +1926,6 @@ CREATE TABLE EventMarker(
Source VARCHAR(200) NULL,
StartTime TIMESTAMP NULL,
StopTime TIMESTAMP NULL,
Notes VARCHAR(max) NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
Notes TEXT NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
);
2 changes: 1 addition & 1 deletion Source/Data/SQL Server/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3155,7 +3155,7 @@ GO
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW [dbo].[LocalSchemaVersion] AS
SELECT 1 AS VersionNumber
SELECT 2 AS VersionNumber
GO

SET ANSI_NULLS ON
Expand Down
Binary file modified Source/Data/SQLite/openHistorian-InitialDataSet.db
Binary file not shown.
Binary file modified Source/Data/SQLite/openHistorian-SampleDataSet.db
Binary file not shown.
Binary file modified Source/Data/SQLite/openHistorian.db
Binary file not shown.
14 changes: 12 additions & 2 deletions Source/Data/SQLite/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ FROM AlarmDevice
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;
SELECT 2 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INTEGER PRIMARY KEY NOT NULL,
Expand All @@ -1778,4 +1778,14 @@ SELECT
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
FROM CompressionSetting CROSS JOIN Node;
FROM CompressionSetting CROSS JOIN Node;

CREATE TABLE EventMarker(
ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
ParentID INTEGER NULL,
Source VARCHAR(200) NULL,
StartTime DATETIME NULL,
StopTime DATETIME NULL,
Notes TEXT NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
);
Binary file modified Source/Data/SerializedSchema.bin
Binary file not shown.

0 comments on commit efcc039

Please sign in to comment.