-- Site title value which was missed in the core sql
-- DESC - Site title value which was missed in the core sql
-- DATE - 11 OCT 2022
-- ADDED BY - Mugunthan

INSERT INTO `setting_site_tb` (`site_setting_id`, `setting_name`, `value`, `description`, `type`, `slug`, `is_required`) VALUES ('16', 'Site title', 'SELECT YOUR PLAN BELOW', 'Site title', 'site', 'site_title', '0');

-- DESC - Site Beta name added
-- DATE - 11 OCT 2022
-- ADDED BY - Maha

INSERT INTO `setting_site_tb` (`site_setting_id`, `setting_name`, `value`, `description`, `type`, `slug`, `is_required`) VALUES ('17', 'Beta name', 'Beta', 'Beta', 'site', 'site_beta_name', '0');

-- DESC - domain name field
-- DATE - 10 OCT 2022
-- ADDED BY - Mugunthan

ALTER TABLE `applicant_tb` ADD `domain_name` VARCHAR(250) NOT NULL AFTER `appointments_sql`;

-- DESC - missing entries for admin left menu 
-- DATE - 18 OCT 2022
-- ADDED BY - Mugunthan

INSERT INTO `link_tb` (`link_id`, `link_name`, `link_url`, `link_img`, `priority`, `description`, `notes`, `isActive`, `instance_id`) VALUES ('79', 'Email Template', 'manage-email-template.php\r\nadd-email-template.php\r\nedit-email-template.php', 'fas fa-envelope-open-text', '79', '', NULL, '1', '0'), ('80', 'Manage Signup Settings', 'manage-signup-settings.php\r\nedit-signup-setting.php', 'fas fa-cog', '80', '', NULL, '1', '0');

INSERT INTO `heading_link_tb` (`heading_link_id`, `heading_id`, `link_id`) VALUES ('333', '14', '79'), ('334', '14', '80');

INSERT INTO `link_role_tb` (`link_role_id`, `link_id`, `role_id`) VALUES ('446', '79', '1'), ('447', '80', '1');

-- DESC - field type change for 'app_img' field in applicant_tb
-- DATE - 18 OCT 2022
-- ADDED BY - Mugunthan

ALTER TABLE `applicant_tb` CHANGE `app_img` `app_img` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '[{\"title\":\"Home\",\"desc\":\"Home\",\"file\":\"home.png\",\"appimgstatus\":\"1\",\"imgpriority\":\"1\"}]';


-- DESC - Signup approval added
-- DATE - 26 OCT 2022
-- ADDED BY - Maha
INSERT INTO `setting_site_tb` (`site_setting_id`, `setting_name`, `value`, `description`, `type`, `slug`, `is_required`) VALUES ('18', 'Approval', 'Have approval to run this Medical Centre?', 'Approval', 'signup', 'signup_approval', '0');