Fix issues with handling OPERATION_DETAILS and OPERATION_PROPERTIES #371

Merged
tcdlpds merged 9 commits from charithag/device-mgt-core:fix-operations into master 9 months ago
Owner

This is to fix incorrectly handled operation details retrieval and operation properties handling.

Need following migration for existing data.

ALTER TABLE `DM_DB`.`DM_OPERATION` 
ADD COLUMN `OPERATION_PROPERTIES` BLOB NULL DEFAULT NULL AFTER `OPERATION_DETAILS`;

ALTER TABLE `ARCHIVAL_DB`.`DM_OPERATION_ARCH` 
ADD COLUMN `OPERATION_PROPERTIES` BLOB NULL DEFAULT NULL AFTER `OPERATION_DETAILS`;

UPDATE DM_OPERATION SET OPERATION_DETAILS = null;

UPDATE DM_ENROLMENT_OP_MAPPING SET STATUS = 'ERROR' WHERE STATUS = 'PENDING' OR STATUS = 'IN_PROGRESS' OR STATUS = 'NOTNOW';
This is to fix incorrectly handled operation details retrieval and operation properties handling. Need following migration for existing data. ``` ALTER TABLE `DM_DB`.`DM_OPERATION` ADD COLUMN `OPERATION_PROPERTIES` BLOB NULL DEFAULT NULL AFTER `OPERATION_DETAILS`; ALTER TABLE `ARCHIVAL_DB`.`DM_OPERATION_ARCH` ADD COLUMN `OPERATION_PROPERTIES` BLOB NULL DEFAULT NULL AFTER `OPERATION_DETAILS`; UPDATE DM_OPERATION SET OPERATION_DETAILS = null; UPDATE DM_ENROLMENT_OP_MAPPING SET STATUS = 'ERROR' WHERE STATUS = 'PENDING' OR STATUS = 'IN_PROGRESS' OR STATUS = 'NOTNOW'; ```
charithag added 1 commit 10 months ago
charithag requested review from tcdlpds 10 months ago
charithag added 1 commit 10 months ago
charithag added 2 commits 10 months ago
charithag added 3 commits 9 months ago
charithag added 1 commit 9 months ago
charithag added 1 commit 9 months ago
amalka.subasinghe approved these changes 9 months ago
tcdlpds merged commit 62722718f2 into master 9 months ago
charithag deleted branch fix-operations 9 months ago

Reviewers

tcdlpds was requested for review 10 months ago
amalka.subasinghe approved these changes 9 months ago
The pull request has been merged as 62722718f2.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: community/device-mgt-core#371
Loading…
There is no content yet.