BEGIN;
DELETE FROM `language` WHERE `phrase` = 'old_checkins';
INSERT INTO `language` (`phrase`, `english`) VALUES ('old_checkins', 'Old Check-ins');
INSERT INTO `sec_menu_item` (`menu_id`, `menu_title`, `page_url`, `module`, `parent_menu`, `is_report`, `createby`, `createdate`, `active`) VALUES
(NULL, 'old_checkins', 'home/old_checkins', 'attendance', '0', '0', '2', '2018-10-04 00:00:00', '1');
UPDATE `sec_menu_item` SET `parent_menu` = 0 WHERE `menu_title` IN ('atn_form', 'atn_log_datewise');
COMMIT;