diff options
author | 2018-04-03 14:11:13 +0800 | |
---|---|---|
committer | 2018-04-11 09:37:43 +0800 | |
commit | e8d169e14a81785379315f003977765043fb4cd5 (patch) | |
tree | 95af122580305d46052fbb179b293ef901d748cf /engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql | |
parent | 74e2a22bdcc49788ad97744b786c7752637d9f54 (diff) |
Fixed the sql issue
Issue-ID: HOLMES-106
Change-Id: I50ac94e8dfb61beaef17ebb0f164e6d37acc5d88
Signed-off-by: Fei Tang <tang.fei4@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql')
-rw-r--r-- | engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql b/engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql index 2b9f584..276957c 100644 --- a/engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql +++ b/engine-d-standalone/src/main/assembly/dbscripts/postgresql/onap-holmes_engine-createobj.sql @@ -36,8 +36,7 @@ CREATE TABLE ALARM_INFO ( LASTEPOCHMICROSEC BIGINT NOT NULL, SOURCEID VARCHAR(150) NOT NULL, SOURCENAME VARCHAR(150) NOT NULL, - PRIMARY KEY (SOURCEID), - UNIQUE (SOURCENAME) + PRIMARY KEY (EVENTID) ); GRANT ALL PRIVILEGES ON ALARM_INFO TO DBUSER; |