From: Tyrell Cook Date: Tue, 28 Apr 2015 22:46:30 +0000 (-0400) Subject: remove wysiwyg options on upgrade X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=022098bba50d84f9bc4d485abfee9f424a36cc97;p=civicrm-core.git remove wysiwyg options on upgrade --- diff --git a/CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl new file mode 100644 index 0000000000..4dd10fd59c --- /dev/null +++ b/CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl @@ -0,0 +1,6 @@ +{* file to handle db changes in 4.7.alpha1 during upgrade *} + +-- CRM-16354 +SELECT @option_group_id_wysiwyg := max(id) from civicrm_option_group where name = 'wysiwyg_editor'; +DELETE FROM civicrm_option_value WHERE name IN ('TinyMCE', 'Joomla Default Editor', 'Drupal Default Editor') + AND option_group_id = @option_group_id_wysiwyg;