Skip to content

Commit 6c10a7b

Browse files
committed
Updated GSF dependencies.
1 parent 62508a4 commit 6c10a7b

File tree

14 files changed

+92
-0
lines changed

14 files changed

+92
-0
lines changed

Source/Data/MySQL/InitialDataSet.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,5 @@ 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
USE openPDC;
302+
303+
USE openPDC;

Source/Data/MySQL/openPDC.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,3 +1881,17 @@ CREATE TABLE DataAvailability(
18811881
TotalAvailableData float NOT NULL,
18821882
PRIMARY KEY(ID)
18831883
);
1884+
1885+
-- *******************************************************************************************
1886+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
1887+
-- *******************************************************************************************
1888+
CREATE VIEW LocalSchemaVersion AS
1889+
SELECT 3 AS VersionNumber;
1890+
1891+
CREATE TABLE DataAvailability(
1892+
ID int AUTO_INCREMENT NOT NULL,
1893+
GoodAvailableData float NOT NULL,
1894+
BadAvailableData float NOT NULL,
1895+
TotalAvailableData float NOT NULL,
1896+
PRIMARY KEY(ID)
1897+
);

Source/Data/Oracle/InitialDataSet.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,4 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Data', 'blue');
296296
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');
299+

Source/Data/Oracle/openPDC.sql

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,6 +2835,30 @@ ALTER TABLE DataAvailability ADD CONSTRAINT PK_DataAvailability PRIMARY KEY (ID)
28352835

28362836
CREATE SEQUENCE SEQ_DataAvailability START WITH 1 INCREMENT BY 1;
28372837

2838+
CREATE TRIGGER AI_DataAvailability BEFORE INSERT ON DataAvailability
2839+
FOR EACH ROW BEGIN SELECT SEQ_DataAvailability.nextval INTO :NEW.ID FROM dual;
2840+
END;
2841+
/
2842+
-- *******************************************************************************************
2843+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
2844+
-- *******************************************************************************************
2845+
CREATE VIEW LocalSchemaVersion AS
2846+
SELECT 3 AS VersionNumber
2847+
FROM dual;
2848+
2849+
CREATE TABLE DataAvailability(
2850+
ID NUMBER NOT NULL,
2851+
GoodAvailableData NUMBER NOT NULL,
2852+
BadAvailableData NUMBER NOT NULL,
2853+
TotalAvailableData NUMBER NOT NULL
2854+
);
2855+
2856+
CREATE UNIQUE INDEX IX_DataAvailability_ID ON DataAvailability (ID ASC) TABLESPACE openPDC_INDEX;
2857+
2858+
ALTER TABLE DataAvailability ADD CONSTRAINT PK_DataAvailability PRIMARY KEY (ID);
2859+
2860+
CREATE SEQUENCE SEQ_DataAvailability START WITH 1 INCREMENT BY 1;
2861+
28382862
CREATE TRIGGER AI_DataAvailability BEFORE INSERT ON DataAvailability
28392863
FOR EACH ROW BEGIN SELECT SEQ_DataAvailability.nextval INTO :NEW.ID FROM dual;
28402864
END;

Source/Data/PostgreSQL/InitialDataSet.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,4 @@ INSERT INTO AlarmState (State, Color) VALUES ('Bad Data', 'blue');
296296
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');
299+

Source/Data/PostgreSQL/openPDC.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,3 +1911,17 @@ CREATE TABLE DataAvailability(
19111911
TotalAvailableData DOUBLE PRECISION NOT NULL
19121912
);
19131913

1914+
1915+
-- *******************************************************************************************
1916+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
1917+
-- *******************************************************************************************
1918+
CREATE VIEW LocalSchemaVersion AS
1919+
SELECT 3 AS VersionNumber;
1920+
1921+
CREATE TABLE DataAvailability(
1922+
ID SERIAL NOT NULL PRIMARY KEY,
1923+
GoodAvailableData DOUBLE PRECISION NOT NULL,
1924+
BadAvailableData DOUBLE PRECISION NOT NULL,
1925+
TotalAvailableData DOUBLE PRECISION NOT NULL
1926+
);
1927+

Source/Data/SQL Server/InitialDataSet.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,3 +894,7 @@ GO
894894

895895
USE openPDC
896896
GO
897+
898+
899+
USE openPDC
900+
GO

Source/Data/SQL Server/openPDC.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,3 +3166,19 @@ CREATE TABLE DataAvailability(
31663166
)
31673167
GO
31683168

3169+
3170+
-- *******************************************************************************************
3171+
-- IMPORTANT NOTE: When making updates to this schema, please increment the version number!
3172+
-- *******************************************************************************************
3173+
CREATE VIEW [dbo].[LocalSchemaVersion] AS
3174+
SELECT 3 AS VersionNumber
3175+
GO
3176+
3177+
CREATE TABLE DataAvailability(
3178+
ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
3179+
GoodAvailableData FLOAT NOT NULL,
3180+
BadAvailableData FLOAT NOT NULL,
3181+
TotalAvailableData FLOAT NOT NULL,
3182+
)
3183+
GO
3184+

Source/Data/SQLite/InitialDataSet.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,5 @@ 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
PRAGMA foreign_keys = ON;
302+
303+
PRAGMA foreign_keys = ON;
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)