Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade doesn't work #26871

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CRM/Upgrade/Incremental/sql/5.65.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ UPDATE civicrm_group SET `name` = `id` WHERE name IS NULL;

UPDATE `civicrm_group`
SET `frontend_description_{$locale}` = `description`
WHERE `frontend_description_{$locale}` IS NULL OR `frontend_description_{$locale}` = '' AND `description` <> '';
WHERE (`frontend_description_{$locale}` IS NULL OR `frontend_description_{$locale}` = '') AND `description` <> '';
{/foreach}
{else}
UPDATE `civicrm_group`
Expand All @@ -21,11 +21,13 @@ UPDATE civicrm_group SET `name` = `id` WHERE name IS NULL;

UPDATE `civicrm_group`
SET `frontend_description` = `description`
WHERE `frontend_description` IS NULL OR `frontend_description` = '' AND description <> '';
WHERE (`frontend_description` IS NULL OR `frontend_description` = '') AND description <> '';
{/if}

{literal}
UPDATE civicrm_mailing_component
SET body_html = REPLACE(body_html, '{welcome.group}', '{group.frontend_title}'),
body_text = REPLACE(body_text, '{welcome.group}', '{group.frontend_title}'),
subject = REPLACE(subject, '{welcome.group}', '{group.frontend_title}')
WHERE component_type = 'Welcome';
{/literal}