diff options
author | Jim Hahn <jrh3@att.com> | 2021-05-25 09:06:50 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-05-25 14:30:48 -0400 |
commit | 9e236be69bc67dbbaf8323087b99149bc40b9872 (patch) | |
tree | f226d4be7fbdf7888e35c137dc812e83443c7360 /testsuites/guard-testing-utils/mysql/sql/testguard.sql | |
parent | 7293cbd3c0bf0043b663d036dcb7abe400a4e706 (diff) |
Change indexes on Op History table
This is the companion change to that made in policy-models.
Per review comments:
- added index to s3p sql script
Issue-ID: POLICY-2874
Change-Id: Ic270b8da92be8b921b3a865ff1ce923af21faaab
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'testsuites/guard-testing-utils/mysql/sql/testguard.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()); |