From 56f93161f044906034c9da440db655e1805236c3 Mon Sep 17 00:00:00 2001 From: Ace Date: Tue, 17 Nov 2020 16:00:24 +0530 Subject: [PATCH] correcting db scripts --- .../src/main/resources/dbscripts/heart-beat/mysql.sql | 2 +- .../src/main/resources/dbscripts/heart-beat/oracle.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/mysql.sql b/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/mysql.sql index 4584426b5c7..570c2f78df2 100644 --- a/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/mysql.sql +++ b/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/mysql.sql @@ -1,5 +1,5 @@ -- ----------------------------------------------------- --- Table `POWER_METER_DEVICE` +-- Table `SERVER_HEART_BEAT_EVENTS` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS SERVER_HEART_BEAT_EVENTS ( ID INTEGER AUTO_INCREMENT NOT NULL, diff --git a/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/oracle.sql b/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/oracle.sql index 81ed4cfaadb..3f435816f4c 100644 --- a/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/oracle.sql +++ b/features/heartbeat-management/io.entgra.server.heart.beat.feature/src/main/resources/dbscripts/heart-beat/oracle.sql @@ -9,6 +9,6 @@ CREATE TABLE SERVER_HEART_BEAT_EVENTS ( UUID VARCHAR(100) NOT NULL, SERVER_PORT INTEGER NOT NULL, LAST_UPDATED_TIMESTAMP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT PK_POWER_METER_DEVICE PRIMARY KEY (ID) + CONSTRAINT PK_SERVER_HEART_BEAT_EVENTS PRIMARY KEY (ID) ) /