delete from center_authority where permission = 'device-manage.dev-info.export-operation-info';

-- 运维助手权限标识纠正
update center_menu set permission = 'device-assistant.sys-manager.user-manager' where server_code = 'device-assistant' and permission = 'device-assistant.user-manager.sys-manager';
update center_menu set permission = 'device-assistant.sys-manager.role-manager' where server_code = 'device-assistant' and permission = 'device-assistant.role-manager.sys-manager';
update center_menu set permission = 'device-assistant.sys-manager.personalization-manager' where server_code = 'device-assistant' and permission = 'device-assistant.personalization-manager.sys-manager';

update center_authority set permission = 'device-assistant.sys-manager.user-manager' where server_code = 'device-assistant' and permission = 'device-assistant.user-manager.sys-manager';
update center_authority set permission = 'device-assistant.sys-manager.role-manager' where server_code = 'device-assistant' and permission = 'device-assistant.role-manager.sys-manager';
update center_authority set permission = 'device-assistant.sys-manager.personalization-manager' where server_code = 'device-assistant' and permission = 'device-assistant.personalization-manager.sys-manager';

update center_authority set module_code = 'sys-manager' where server_code = 'device-assistant' and module_code in('role-manager', 'user-manager', 'personalization-manager');
delete from center_module where server_code = 'device-assistant' and module_code in('role-manager', 'user-manager', 'personalization-manager');

update center_authority set module_code = 'device', permission = 'device-assistant.device.event', description = '故障事件' where server_code = 'device-assistant' and permission = 'device-assistant.event.base';
delete from center_module where server_code = 'device-assistant' and module_code = 'event';

update center_authority set module_code = 'device', permission = 'device-assistant.device.dev-hide-factor' where server_code = 'device-assistant' and permission = 'device-assistant.dev-hide-factor.base';
delete from center_module where server_code = 'device-assistant' and module_code = 'dev-hide-factor';
