From 022098bba50d84f9bc4d485abfee9f424a36cc97 Mon Sep 17 00:00:00 2001 From: Tyrell Cook Date: Tue, 28 Apr 2015 18:46:30 -0400 Subject: [PATCH] remove wysiwyg options on upgrade --- CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl 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; -- 2.25.1