-- ============LICENSE_START=======================================================
--- Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+-- Copyright (C) 2019-2021 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.
);
create index if not exists operationshistory_clreqid_index on
- operationshistory(closedLoopName, requestId);
+ operationshistory(requestId, closedLoopName);
create index if not exists operationshistory_target_index on
- operationshistory(target, operation, actor);
+ operationshistory(target, operation, actor, endtime);
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());