ALTER TABLE `segment` ADD `sg_service_last_id` INT NULL AFTER `sg_chitty_last_id`, ADD `sg_sale_last_id` INT NULL AFTER `sg_service_last_id`, ADD `sg_purchase_last_id` INT NULL AFTER `sg_sale_last_id`;
ALTER TABLE `segment` ADD `sg_service_id_format` VARCHAR(255) NULL AFTER `sg_service_last_id`;