
# Insert global data for form id
INSERT INTO `site_global` (`site_id`, `label`, `json`, `data`)
VALUES (2, 'salesforce_forms', 1, '{\"settings\": {\"oid\": \"00D4J000000CqBG\"}}');

# Update module type for newsletter pre sign-up
UPDATE page
SET cache = REPLACE (cache, 'eventmaster-form', 'salesforce-form')
WHERE name <> '/contact-us/' and name <> '/sign-up/';

# Update template from newsletter pre sign-up
UPDATE page
SET cache = REPLACE (cache, 'eventmaster-form-pre-newsletter', 'salesforce-form-pre-newsletter')
WHERE name <> '/contact-us/' and name <> '/sign-up/';

# Update module type for newsletter sign-up
UPDATE page
SET cache = REPLACE (cache, 'type="form"', 'type="salesforce-form"')
WHERE name = '/email/sign-up/';

# Update template for newsletter sign-up
UPDATE page
SET cache = REPLACE (cache, 'eventmaster-form-newsletter', 'salesforce-form-newsletter')
WHERE name = '/email/sign-up/';

