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

CRM-19464 sql upgrade #10166

Merged
merged 2 commits into from
Apr 16, 2017
Merged

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Apr 14, 2017

Splitting the SQL upgrade for CRM-19464 from PR-9857


@aydun
Copy link
Contributor Author

aydun commented Apr 15, 2017

This needs PR-9857 merging first

SELECT @supp2_wt := weight FROM civicrm_option_value WHERE name = 'supplemental_address_2';
UPDATE civicrm_option_value SET weight = weight + 1 WHERE option_group_id = @option_group_id_adOpt AND weight > @supp2_wt;
INSERT INTO
`civicrm_option_value` (`option_group_id`, {localize field='label'}label{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`, `icon`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aydun you need to localize description field as well

@seamuslee001
Copy link
Contributor

@eileenmcnaughton this is the upgrade part

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001
Copy link
Contributor

@eileenmcnaughton this has now passed again :-)

@eileenmcnaughton eileenmcnaughton merged commit 8ee7638 into civicrm:master Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants