Modified the sql script to create the secondary indices.
Issue-ID: POLICY-2581
Change-Id: If0bdaa9d8769e99bd47b8780251d96dba172b3e2
Signed-off-by: Jim Hahn <jrh3@att.com>
-- ============LICENSE_START=======================================================
-- ============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.
-- ================================================================================
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
subrequestId varchar(50),
endtime timestamp not null default current_timestamp,
PRIMARY KEY (id)
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);