diff options
author | Ajith Sreekumar <ajith.sreekumar@bell.ca> | 2021-05-26 11:38:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-26 11:38:05 +0000 |
commit | d1fa4ea52b243f60047a0bad5e63e947572b036b (patch) | |
tree | 89df3b30d36c7952914892f734f81d240f1d2c1e /testsuites/guard-testing-utils/mysql/sql | |
parent | 8f1cc3035fcee119f22141f60dfeb6776b6f96e5 (diff) | |
parent | 9e236be69bc67dbbaf8323087b99149bc40b9872 (diff) |
Merge "Change indexes on Op History table"
Diffstat (limited to 'testsuites/guard-testing-utils/mysql/sql')
-rw-r--r-- | testsuites/guard-testing-utils/mysql/sql/testguard.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/guard-testing-utils/mysql/sql/testguard.sql b/testsuites/guard-testing-utils/mysql/sql/testguard.sql index 15ec5767..3840b431 100644 --- a/testsuites/guard-testing-utils/mysql/sql/testguard.sql +++ b/testsuites/guard-testing-utils/mysql/sql/testguard.sql @@ -15,5 +15,11 @@ create table if not exists operationshistory ( PRIMARY KEY (id) ); +create index if not exists operationshistory_clreqid_index on + operationshistory(requestId, closedLoopName); + +create index if not exists operationshistory_target_index on + operationshistory(target, operation, actor, endtime); + insert into operationshistory (`closedLoopName`,`requestId`,`actor`,`operation`,`target`,`starttime`,`outcome`,`message`,`subrequestId`,`endtime`) VALUES('ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3','test001122','SO','VF Module Create','.*',NOW() - INTERVAL 1 HOUR,'SUCCESS',null,null,Now()); |