diff options
author | Jim Hahn <jrh3@att.com> | 2020-05-26 13:29:02 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-05-26 13:39:09 -0400 |
commit | 2ab78dd934a88bb29238ca15b586b2ef4f83bcdf (patch) | |
tree | 280a360dd73b10eadbe1c501b2048ba3b1235d5c /packages | |
parent | 7587e14625ff5bf93dae1fb4f014c96b6e13b3e3 (diff) |
Create secondary indices
Modified the sql script to create the secondary indices.
Issue-ID: POLICY-2581
Change-Id: If0bdaa9d8769e99bd47b8780251d96dba172b3e2
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql b/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql index 4d11dec0..f2d01fbf 100644 --- a/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql +++ b/packages/policy-xacmlpdp-tarball/src/main/resources/mysql/sql/createguardtable.sql @@ -1,5 +1,5 @@ -- ============LICENSE_START======================================================= --- Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. +-- Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. -- ================================================================================ -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. @@ -29,4 +29,10 @@ create table if not exists operationshistory ( subrequestId varchar(50), endtime timestamp not null default current_timestamp, PRIMARY KEY (id) -);
\ No newline at end of file +); + +create index if not exists operationshistory_clreqid_index on + operationshistory(closedLoopName, requestId); + +create index if not exists operationshistory_target_index on + operationshistory(target, operation, actor); |