diff options
author | shentao <shentao@chinamobile.com> | 2017-11-03 20:49:26 +0800 |
---|---|---|
committer | shentao <shentao@chinamobile.com> | 2017-11-03 20:49:34 +0800 |
commit | aa1764cf15ff7548d67b6cebdea345b3adc5c899 (patch) | |
tree | 2e93b93432223d3a9f6aad1c15c5a95cf51c176f /resources | |
parent | f59c8533f47fbf34477b1594ef48b173b3a88741 (diff) |
Fix bug about getting monitor data from dmaap
Change-Id: Id68eb80f3e098b44e1dfc95b21f02f4e5ce2ec21
Issue-Id: USECASEUI-50
Signed-off-by: shentao <shentao@chinamobile.com>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/dbscripts/mysql/usecase-ui-createobj.sql | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/dbscripts/mysql/usecase-ui-createobj.sql b/resources/dbscripts/mysql/usecase-ui-createobj.sql index 7a55c72b..7f839578 100644 --- a/resources/dbscripts/mysql/usecase-ui-createobj.sql +++ b/resources/dbscripts/mysql/usecase-ui-createobj.sql @@ -27,7 +27,8 @@ CREATE TABLE `alarms_additionalinformation` ( `eventId` varchar(30) NOT NULL, `createTime` datetime NOT NULL, `updateTime` datetime NOT NULL, - PRIMARY KEY (`name`,`eventId`) + `id` int(10) NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- @@ -61,7 +62,7 @@ CREATE TABLE `alarms_commoneventheader` ( `status` varchar(11) NOT NULL, `createTime` datetime NOT NULL, `updateTime` datetime NOT NULL, - PRIMARY KEY (`eventId`) + PRIMARY KEY (`eventName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- @@ -74,7 +75,8 @@ CREATE TABLE `performance_additionalinformation` ( `eventId` varchar(30) NOT NULL, `createTime` datetime NOT NULL, `updateTime` datetime NOT NULL, - PRIMARY KEY (`name`,`eventId`) + `id` int(10) NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- @@ -101,11 +103,9 @@ CREATE TABLE `performance_commoneventheader` ( `measurementInterval` varchar(10) NOT NULL, `createTime` datetime NOT NULL, `updateTime` datetime NOT NULL, - PRIMARY KEY (`eventId`) + PRIMARY KEY (`eventName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Init Records --- ---------------------------- -INSERT INTO `alarms_additionalinformation` VALUES ('name', 'value', 'eventId', '2017-09-19 11:12:34', '2017-09-19 11:12:34'); -INSERT INTO `alarms_commoneventheader` VALUES ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '2017-09-04 15:25:11', '2017-09-11 15:25:19'); +-- ----------------------------
\ No newline at end of file |