CRM-12142 Need to set default value for new premiums_nothankyou_label column
authorDave Greenberg <dave@civicrm.org>
Wed, 20 Mar 2013 18:33:58 +0000 (11:33 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 20 Mar 2013 18:33:58 +0000 (11:33 -0700)
CRM/Upgrade/Incremental/sql/4.3.beta4.mysql.tpl

index a5b4a141ea73bf8c4ab15ee1d0bd869d9efecc19..6fb8bbdeb328dc5ff8de0430fa3c14b3bd35a660 100644 (file)
@@ -5,6 +5,9 @@
  option in premiums block (e.g. No thank you)';
 {/if}
 
+-- Also need to populate default text for premiums_nothankyou_label
+UPDATE `civicrm_premiums` SET {localize field='premiums_nothankyou_label'}premiums_nothankyou_label{/localize} = {localize}'{ts escape="sql"}No thank-you{/ts}'{/localize};
+
 -- CRM-12151
 ALTER TABLE civicrm_option_value
   DROP INDEX index_option_group_id_value,