ALTER TABLE `personnel_users` ADD `online` INT NOT NULL AFTER `last_module`, ADD `extra` VARCHAR(250) NOT NULL AFTER `online`,ADD `last_submodule` VARCHAR(250) NOT NULL AFTER `last_seen`;
ALTER TABLE `personnel_users` CHANGE `last_submodule` `submodule` VARCHAR(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, CHANGE `last_module` `module` VARCHAR(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `personnel_users` CHANGE `module` `visit_id` INT NOT NULL;
ALTER TABLE `personnel_users` CHANGE `extra` `message` VARCHAR(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
UPDATE `content_visitor_visits` SET type = 'Revisit' WHERE type = 'Return';