Skip to content

Commit efcc039

Browse files
committed
Updated GSF dependencies.
1 parent e4a3f8e commit efcc039

File tree

9 files changed

+27
-14
lines changed

9 files changed

+27
-14
lines changed

Source/Data/MySQL/openHistorian.sql

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,14 +1872,14 @@ FROM AlarmDevice
18721872
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
18731873
-- *******************************************************************************************
18741874
CREATE VIEW LocalSchemaVersion AS
1875-
SELECT 1 AS VersionNumber;
1875+
SELECT 2 AS VersionNumber;
18761876

18771877
CREATE TABLE CompressionSetting(
18781878
PointID INT NOT NULL,
18791879
CompressionMinTime BIGINT NOT NULL DEFAULT 0,
18801880
CompressionMaxTime BIGINT NOT NULL DEFAULT 0,
18811881
CompressionLimit DOUBLE NOT NULL DEFAULT 0.0,
1882-
CONSTRAINT PK_CompressionSetting PRIMARY KEY (PointID ASC)
1882+
CONSTRAINT PK_CompressionSetting PRIMARY KEY (PointID ASC)
18831883
);
18841884

18851885
CREATE VIEW NodeCompressionSetting AS
@@ -1892,11 +1892,13 @@ SELECT
18921892
FROM CompressionSetting CROSS JOIN Node;
18931893

18941894
CREATE TABLE EventMarker(
1895-
ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
1896-
ParentID INTEGER NULL,
1895+
ID INT AUTO_INCREMENT NOT NULL,
1896+
ParentID INT NULL,
18971897
Source VARCHAR(200) NULL,
18981898
StartTime DATETIME NULL,
18991899
StopTime DATETIME NULL,
1900-
Notes VARCHAR(max) NULL,
1901-
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
1900+
Notes TEXT NULL,
1901+
CONSTRAINT PK_EventMarker PRIMARY KEY (ID ASC)
19021902
);
1903+
1904+
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);

Source/Data/Oracle/openHistorian.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,7 +2819,7 @@ FROM AlarmDevice
28192819
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
28202820
-- *******************************************************************************************
28212821
CREATE VIEW LocalSchemaVersion AS
2822-
SELECT 1 AS VersionNumber
2822+
SELECT 2 AS VersionNumber
28232823
FROM dual;
28242824

28252825
CREATE TABLE CompressionSetting(
@@ -2842,7 +2842,7 @@ FROM CompressionSetting CROSS JOIN Node;
28422842

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

2862+
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);

Source/Data/PostgreSQL/openHistorian.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ FROM AlarmDevice
19021902
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
19031903
-- *******************************************************************************************
19041904
CREATE VIEW LocalSchemaVersion AS
1905-
SELECT 1 AS VersionNumber;
1905+
SELECT 2 AS VersionNumber;
19061906

19071907
CREATE TABLE CompressionSetting(
19081908
PointID INTEGER NOT NULL PRIMARY KEY,
@@ -1926,6 +1926,6 @@ CREATE TABLE EventMarker(
19261926
Source VARCHAR(200) NULL,
19271927
StartTime TIMESTAMP NULL,
19281928
StopTime TIMESTAMP NULL,
1929-
Notes VARCHAR(max) NULL,
1930-
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
1929+
Notes TEXT NULL,
1930+
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
19311931
);

Source/Data/SQL Server/openHistorian.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,7 @@ GO
31553155
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
31563156
-- *******************************************************************************************
31573157
CREATE VIEW [dbo].[LocalSchemaVersion] AS
3158-
SELECT 1 AS VersionNumber
3158+
SELECT 2 AS VersionNumber
31593159
GO
31603160

31613161
SET ANSI_NULLS ON
4 KB
Binary file not shown.
4 KB
Binary file not shown.

Source/Data/SQLite/openHistorian.db

4 KB
Binary file not shown.

Source/Data/SQLite/openHistorian.sql

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ FROM AlarmDevice
17621762
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
17631763
-- *******************************************************************************************
17641764
CREATE VIEW LocalSchemaVersion AS
1765-
SELECT 1 AS VersionNumber;
1765+
SELECT 2 AS VersionNumber;
17661766

17671767
CREATE TABLE CompressionSetting(
17681768
PointID INTEGER PRIMARY KEY NOT NULL,
@@ -1778,4 +1778,14 @@ SELECT
17781778
CompressionSetting.CompressionMinTime,
17791779
CompressionSetting.CompressionMaxTime,
17801780
CompressionSetting.CompressionLimit
1781-
FROM CompressionSetting CROSS JOIN Node;
1781+
FROM CompressionSetting CROSS JOIN Node;
1782+
1783+
CREATE TABLE EventMarker(
1784+
ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
1785+
ParentID INTEGER NULL,
1786+
Source VARCHAR(200) NULL,
1787+
StartTime DATETIME NULL,
1788+
StopTime DATETIME NULL,
1789+
Notes TEXT NULL,
1790+
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
1791+
);

Source/Data/SerializedSchema.bin

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)