INSERT INTO `tblleads_sources_static` (`id`, `name`) VALUES (NULL, 'Other');
INSERT INTO `tblleads_sources` (`tenant_id`, `name`) SELECT id, 'Other' FROM tbltenants;

UPDATE tbloptions o
INNER JOIN tblleads_sources ls ON ls.tenant_id = o.tenant_id AND ls.name = 'Other'
SET o.value = ls.id
WHERE o.name = 'leads_default_source' AND o.value = '';

UPDATE tblleads l
INNER JOIN tblleads_sources ls ON ls.tenant_id = l.tenant_id AND ls.name = 'Other'
SET l.source = ls.id
WHERE l.source = 0 OR l.source = '';