Skip to content

Commit 65ef6ad

Browse files
committed
Updated GSF dependencies.
1 parent 787eeb6 commit 65ef6ad

14 files changed

+208
-0
lines changed

Source/Data/MySQL/InitialDataSet.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,6 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
299299
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
300300
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
301301
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
302+
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
303+
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
302304
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);

Source/Data/MySQL/openHistorian.sql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,3 +1902,38 @@ CREATE TABLE EventMarker(
19021902
);
19031903

19041904
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);
1905+
1906+
-- *******************************************************************************************
1907+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
1908+
-- *******************************************************************************************
1909+
CREATE VIEW LocalSchemaVersion AS
1910+
SELECT 2 AS VersionNumber;
1911+
1912+
CREATE TABLE CompressionSetting(
1913+
PointID INT NOT NULL,
1914+
CompressionMinTime BIGINT NOT NULL DEFAULT 0,
1915+
CompressionMaxTime BIGINT NOT NULL DEFAULT 0,
1916+
CompressionLimit DOUBLE NOT NULL DEFAULT 0.0,
1917+
CONSTRAINT PK_CompressionSetting PRIMARY KEY (PointID ASC)
1918+
);
1919+
1920+
CREATE VIEW NodeCompressionSetting AS
1921+
SELECT
1922+
Node.ID AS NodeID,
1923+
CompressionSetting.PointID,
1924+
CompressionSetting.CompressionMinTime,
1925+
CompressionSetting.CompressionMaxTime,
1926+
CompressionSetting.CompressionLimit
1927+
FROM CompressionSetting CROSS JOIN Node;
1928+
1929+
CREATE TABLE EventMarker(
1930+
ID INT AUTO_INCREMENT NOT NULL,
1931+
ParentID INT NULL,
1932+
Source VARCHAR(200) NULL,
1933+
StartTime DATETIME NULL,
1934+
StopTime DATETIME NULL,
1935+
Notes TEXT NULL,
1936+
CONSTRAINT PK_EventMarker PRIMARY KEY (ID ASC)
1937+
);
1938+
1939+
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);

Source/Data/Oracle/InitialDataSet.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,6 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
297297
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
298298
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
299299
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
300+
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
301+
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
300302
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);

Source/Data/Oracle/openHistorian.sql

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2860,3 +2860,49 @@ CREATE TRIGGER AI_EventMarker BEFORE INSERT ON EventMarker
28602860
END;
28612861

28622862
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);
2863+
2864+
-- *******************************************************************************************
2865+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
2866+
-- *******************************************************************************************
2867+
CREATE VIEW LocalSchemaVersion AS
2868+
SELECT 2 AS VersionNumber
2869+
FROM dual;
2870+
2871+
CREATE TABLE CompressionSetting(
2872+
PointID NUMBER NOT NULL,
2873+
CompressionMinTime NUMBER(19, 0) DEFAULT 0 NOT NULL,
2874+
CompressionMaxTime NUMBER(19, 0) DEFAULT 0 NOT NULL,
2875+
CompressionLimit NUMBER(9, 6) DEFAULT 0.0 NOT NULL
2876+
);
2877+
2878+
CREATE UNIQUE INDEX IX_CompressionSetting_PointID ON CompressionSetting (PointID ASC) TABLESPACE openHistorian_INDEX;
2879+
2880+
CREATE VIEW NodeCompressionSetting AS
2881+
SELECT
2882+
Node.ID AS NodeID,
2883+
CompressionSetting.PointID,
2884+
CompressionSetting.CompressionMinTime,
2885+
CompressionSetting.CompressionMaxTime,
2886+
CompressionSetting.CompressionLimit
2887+
FROM CompressionSetting CROSS JOIN Node;
2888+
2889+
CREATE TABLE EventMarker(
2890+
ID NUMBER NOT NULL,
2891+
ParentID NUMBER NULL,
2892+
Source VARCHAR2(200) NULL,
2893+
StartTime DATE NULL,
2894+
StopTime DATE NULL,
2895+
Notes VARCHAR2(4000) NULL
2896+
);
2897+
2898+
CREATE UNIQUE INDEX IX_EventMarker_ID ON EventMarker (ID ASC) TABLESPACE openHistorian_INDEX;
2899+
2900+
ALTER TABLE EventMarker ADD CONSTRAINT PK_EventMarker PRIMARY KEY (ID);
2901+
2902+
CREATE SEQUENCE SEQ_EventMarker START WITH 1 INCREMENT BY 1;
2903+
2904+
CREATE TRIGGER AI_EventMarker BEFORE INSERT ON EventMarker
2905+
FOR EACH ROW BEGIN SELECT SEQ_EventMarker.nextval INTO :NEW.ID FROM dual;
2906+
END;
2907+
2908+
ALTER TABLE EventMarker ADD CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID);

Source/Data/PostgreSQL/InitialDataSet.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,6 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
297297
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
298298
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
299299
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
300+
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
301+
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
300302
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);

Source/Data/PostgreSQL/openHistorian.sql

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,3 +1929,35 @@ CREATE TABLE EventMarker(
19291929
Notes TEXT NULL,
19301930
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
19311931
);
1932+
1933+
-- *******************************************************************************************
1934+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
1935+
-- *******************************************************************************************
1936+
CREATE VIEW LocalSchemaVersion AS
1937+
SELECT 2 AS VersionNumber;
1938+
1939+
CREATE TABLE CompressionSetting(
1940+
PointID INTEGER NOT NULL PRIMARY KEY,
1941+
CompressionMinTime BIGINT NOT NULL DEFAULT 0,
1942+
CompressionMaxTime BIGINT NOT NULL DEFAULT 0,
1943+
CompressionLimit DOUBLE PRECISION NOT NULL DEFAULT 0.0
1944+
);
1945+
1946+
CREATE VIEW NodeCompressionSetting AS
1947+
SELECT
1948+
Node.ID AS NodeID,
1949+
CompressionSetting.PointID,
1950+
CompressionSetting.CompressionMinTime,
1951+
CompressionSetting.CompressionMaxTime,
1952+
CompressionSetting.CompressionLimit
1953+
FROM CompressionSetting CROSS JOIN Node;
1954+
1955+
CREATE TABLE EventMarker(
1956+
ID SERIAL NOT NULL PRIMARY KEY,
1957+
ParentID INTEGER NULL,
1958+
Source VARCHAR(200) NULL,
1959+
StartTime TIMESTAMP NULL,
1960+
StopTime TIMESTAMP NULL,
1961+
Notes TEXT NULL,
1962+
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID)
1963+
);

Source/Data/SQL Server/InitialDataSet.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,5 +894,10 @@ GO
894894
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15)
895895
GO
896896

897+
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1)
898+
GO
899+
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15)
900+
GO
901+
897902
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1)
898903
GO

Source/Data/SQL Server/openHistorian.sql

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3185,6 +3185,56 @@ FROM CompressionSetting CROSS JOIN Node
31853185
GO
31863186

31873187

3188+
CREATE TABLE [dbo].[EventMarker](
3189+
[ID] [int] IDENTITY(1,1) NOT NULL,
3190+
[ParentID] [int] NULL,
3191+
[Source] [varchar](200) NULL,
3192+
[StartTime] [datetime] NULL,
3193+
[StopTime] [datetime] NULL,
3194+
[Notes] [varchar](max) NULL,
3195+
CONSTRAINT [PK_EventMarker] PRIMARY KEY CLUSTERED
3196+
( [ID] ASC ) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
3197+
)
3198+
ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
3199+
GO
3200+
3201+
ALTER TABLE [dbo].[EventMarker] WITH CHECK ADD CONSTRAINT [FK_EventMarker_EventMarker] FOREIGN KEY([ParentID])
3202+
REFERENCES [dbo].[EventMarker] ([ID])
3203+
GO
3204+
-- *******************************************************************************************
3205+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
3206+
-- *******************************************************************************************
3207+
CREATE VIEW [dbo].[LocalSchemaVersion] AS
3208+
SELECT 2 AS VersionNumber
3209+
GO
3210+
3211+
SET ANSI_NULLS ON
3212+
GO
3213+
SET QUOTED_IDENTIFIER ON
3214+
GO
3215+
CREATE TABLE [dbo].[CompressionSetting](
3216+
[PointID] [int] NOT NULL,
3217+
[CompressionMinTime] [bigint] NOT NULL DEFAULT ((0)),
3218+
[CompressionMaxTime] [bigint] NOT NULL DEFAULT ((0)),
3219+
[CompressionLimit] [float] NOT NULL DEFAULT ((0.0)),
3220+
CONSTRAINT [PK_CompressionSetting] PRIMARY KEY CLUSTERED
3221+
(
3222+
[PointID] ASC
3223+
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
3224+
) ON [PRIMARY]
3225+
GO
3226+
3227+
CREATE VIEW NodeCompressionSetting AS
3228+
SELECT
3229+
Node.ID AS NodeID,
3230+
CompressionSetting.PointID,
3231+
CompressionSetting.CompressionMinTime,
3232+
CompressionSetting.CompressionMaxTime,
3233+
CompressionSetting.CompressionLimit
3234+
FROM CompressionSetting CROSS JOIN Node
3235+
GO
3236+
3237+
31883238
CREATE TABLE [dbo].[EventMarker](
31893239
[ID] [int] IDENTITY(1,1) NOT NULL,
31903240
[ParentID] [int] NULL,

Source/Data/SQLite/InitialDataSet.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,6 @@ INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
300300
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
301301
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
302302
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
303+
304+
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
305+
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)