Skip to content

Commit

Permalink
Updated GSF dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfbuildbot committed Oct 18, 2023
1 parent f065f12 commit 7d523ea
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 195 deletions.
2 changes: 0 additions & 2 deletions Source/Data/MySQL/InitialDataSet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,4 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
33 changes: 0 additions & 33 deletions Source/Data/MySQL/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1899,36 +1899,3 @@ CREATE TABLE EventMarker(
Notes VARCHAR(max) NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
);

-- *******************************************************************************************
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 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)
);

CREATE VIEW NodeCompressionSetting AS
SELECT
Node.ID AS NodeID,
CompressionSetting.PointID,
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
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 VARCHAR(max) NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
);
2 changes: 0 additions & 2 deletions Source/Data/Oracle/InitialDataSet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,4 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
45 changes: 0 additions & 45 deletions Source/Data/Oracle/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2858,48 +2858,3 @@ CREATE TRIGGER AI_EventMarker BEFORE INSERT ON EventMarker
FOR EACH ROW BEGIN SELECT SEQ_EventMarker.nextval INTO :NEW.ID FROM dual;
END;


-- *******************************************************************************************
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber
FROM dual;

CREATE TABLE CompressionSetting(
PointID NUMBER NOT NULL,
CompressionMinTime NUMBER(19, 0) DEFAULT 0 NOT NULL,
CompressionMaxTime NUMBER(19, 0) DEFAULT 0 NOT NULL,
CompressionLimit NUMBER(9, 6) DEFAULT 0.0 NOT NULL
);

CREATE UNIQUE INDEX IX_CompressionSetting_PointID ON CompressionSetting (PointID ASC) TABLESPACE openHistorian_INDEX;

CREATE VIEW NodeCompressionSetting AS
SELECT
Node.ID AS NodeID,
CompressionSetting.PointID,
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
FROM CompressionSetting CROSS JOIN Node;

CREATE TABLE EventMarker(
ID NUMBER NOT NULL,
ParentID Number NULL,
Source VARCHAR2(200) NULL,
StartTime DATE NULL,
StopTime DATE NULL,
Notes VARCHAR2(4000) NULL
);

CREATE UNIQUE INDEX IX_EventMarker_ID ON EventMarker (ID ASC) TABLESPACE openHistorian_INDEX;

ALTER TABLE EventMarker ADD CONSTRAINT PK_EventMarker PRIMARY KEY (ID);

CREATE SEQUENCE SEQ_EventMarker START WITH 1 INCREMENT BY 1;

CREATE TRIGGER AI_EventMarker BEFORE INSERT ON EventMarker
FOR EACH ROW BEGIN SELECT SEQ_EventMarker.nextval INTO :NEW.ID FROM dual;
END;

2 changes: 0 additions & 2 deletions Source/Data/PostgreSQL/InitialDataSet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,4 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Time', 'purple');
INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
32 changes: 0 additions & 32 deletions Source/Data/PostgreSQL/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1928,35 +1928,3 @@ CREATE TABLE EventMarker(
Notes VARCHAR(max) NULL,
CONSTRAINT FK_EventMarker_EventMarker FOREIGN KEY(ParentID) REFERENCES EventMarker (ID) ON DELETE CASCADE ON UPDATE CASCADE
);

-- *******************************************************************************************
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INTEGER NOT NULL PRIMARY KEY,
CompressionMinTime BIGINT NOT NULL DEFAULT 0,
CompressionMaxTime BIGINT NOT NULL DEFAULT 0,
CompressionLimit DOUBLE PRECISION NOT NULL DEFAULT 0.0
);

CREATE VIEW NodeCompressionSetting AS
SELECT
Node.ID AS NodeID,
CompressionSetting.PointID,
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
FROM CompressionSetting CROSS JOIN Node;

CREATE TABLE EventMarker(
ID SERIAL NOT NULL PRIMARY KEY,
ParentID INTEGER NULL,
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
);
5 changes: 0 additions & 5 deletions Source/Data/SQL Server/InitialDataSet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,5 @@ GO
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15)
GO

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

INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1)
GO
50 changes: 0 additions & 50 deletions Source/Data/SQL Server/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3184,56 +3184,6 @@ FROM CompressionSetting CROSS JOIN Node
GO


CREATE TABLE [dbo].[EventMarker](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ParentID] [int] NULL,
[Source] [varchar](200) NULL,
[StartTime] [datetime] NULL,
[StopTime] [datetime] NULL,
[Notes] [varchar](max) NULL,
CONSTRAINT [PK_EventMarker] PRIMARY KEY CLUSTERED
( [ID] ASC ) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
)
ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

ALTER TABLE [dbo].[EventMarker] WITH CHECK ADD CONSTRAINT [FK_EventMarker_EventMarker] FOREIGN KEY([ParentID])
REFERENCES [dbo].[EventMarker] ([ID])
GO
-- *******************************************************************************************
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW [dbo].[LocalSchemaVersion] AS
SELECT 1 AS VersionNumber
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CompressionSetting](
[PointID] [int] NOT NULL,
[CompressionMinTime] [bigint] NOT NULL DEFAULT ((0)),
[CompressionMaxTime] [bigint] NOT NULL DEFAULT ((0)),
[CompressionLimit] [float] NOT NULL DEFAULT ((0.0)),
CONSTRAINT [PK_CompressionSetting] PRIMARY KEY CLUSTERED
(
[PointID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

CREATE VIEW NodeCompressionSetting AS
SELECT
Node.ID AS NodeID,
CompressionSetting.PointID,
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
FROM CompressionSetting CROSS JOIN Node
GO


CREATE TABLE [dbo].[EventMarker](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ParentID] [int] NULL,
Expand Down
3 changes: 0 additions & 3 deletions Source/Data/SQLite/InitialDataSet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,3 @@ INSERT INTO AlarmState (State, Color) VALUES ('Out of Service', 'grey');
INSERT INTO AlarmState (State, Color) VALUES ('Acknowledged', 'rosybrown');
INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);

INSERT INTO Protocol(Acronym, Name, Type, Category, AssemblyName, TypeName, LoadOrder) VALUES('COMTRADE', 'COMTRADE Import', 'Measurement', 'Imported', 'TestingAdapters.dll', 'TestingAdapters.VirtualInputAdapter', 15);
INSERT INTO ConfigurationEntity(SourceName, RuntimeName, Description, LoadOrder, Enabled) VALUES('NodeCompressionSetting', 'CompressionSettings', 'Defines information about measurement compression settings', 19, 1);
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.
21 changes: 0 additions & 21 deletions Source/Data/SQLite/openHistorian.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1763,27 +1763,6 @@ FROM AlarmDevice
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INTEGER PRIMARY KEY NOT NULL,
CompressionMinTime INTEGER NOT NULL DEFAULT 0,
CompressionMaxTime INTEGER NOT NULL DEFAULT 0,
CompressionLimit REAL NOT NULL DEFAULT 0.0
);

CREATE VIEW NodeCompressionSetting AS
SELECT
Node.ID AS NodeID,
CompressionSetting.PointID,
CompressionSetting.CompressionMinTime,
CompressionSetting.CompressionMaxTime,
CompressionSetting.CompressionLimit
FROM CompressionSetting CROSS JOIN Node;
-- *******************************************************************************************
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
-- *******************************************************************************************
CREATE VIEW LocalSchemaVersion AS
SELECT 1 AS VersionNumber;

CREATE TABLE CompressionSetting(
PointID INTEGER PRIMARY KEY NOT NULL,
CompressionMinTime INTEGER NOT NULL DEFAULT 0,
Expand Down
Binary file modified Source/Data/SerializedSchema.bin
Binary file not shown.

0 comments on commit 7d523ea

Please sign in to comment.