SET @max_event_listener_position := (SELECT MAX(`position`)FROM ohrm_event_listener);
INSERT INTO `ohrm_event_listener` (`event`, `listener_class`, `enabled`, `position`) VALUES
('employees_terminated', 'DeviceTokenDeletionUponEmployeeTerminationListener', 1, @max_event_listener_position + 1),
('admin.system_user.update_user', 'DeviceTokenDeletionUponUserDeactivationListener', 1, @max_event_listener_position + 2),
('admin.system_user.delete_user', 'DeviceTokenDeletionUponUserDeletionListener', 1, @max_event_listener_position + 3);