remove wysiwyg options on upgrade
authorTyrell Cook <tyrell@aghstrategies.com>
Tue, 28 Apr 2015 22:46:30 +0000 (18:46 -0400)
committerTyrell Cook <tyrell@aghstrategies.com>
Tue, 28 Apr 2015 22:46:30 +0000 (18:46 -0400)
CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl [new file with mode: 0644]

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 (file)
index 0000000..4dd10fd
--- /dev/null
@@ -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;