
START TRANSACTION;

INSERT INTO `options` (`foreign_id`, `key`, `tab_id`, `value`, `label`, `type`, `order`, `is_visible`, `style`) VALUES
(1, 'o_email_address', 1, NULL, NULL, 'string', 11, 1, NULL);

SET @id := (SELECT `id` FROM `fields` WHERE `key` = "opt_o_email_address");
UPDATE `multi_lang` SET `content` = 'Email account for email notifications' WHERE `foreign_id` = @id AND `model` = "pjField" AND `field` = "title";

INSERT INTO `fields` VALUES (NULL, 'lblOptionEmailTip', 'backend', 'Label / Email tooltip', 'script', NULL);
SET @id := (SELECT LAST_INSERT_ID());
INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'Set the email which users will see when they receive emails from the system. Go to Notifications tab to manage automated email notifications.', 'script');

COMMIT;