Added missing table civicrm_mailing_abtest in 4.6.alpha1.mysql.tpl
authorWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 22 Jan 2015 05:48:54 +0000 (11:18 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 22 Jan 2015 05:48:54 +0000 (11:18 +0530)
CRM/Upgrade/Incremental/sql/4.6.alpha1.mysql.tpl

index f7b6b40cb91d15677b5cbe9f6a48bdf493c6922a..4f6618f07348fcd8c44dfe716f7afbbb9ab44833 100755 (executable)
@@ -29,6 +29,23 @@ INSERT INTO `civicrm_navigation`
 VALUES
   ( {$domainID}, 'civicrm/admin/setting/preferences/contribute',      '{ts escape="sql" skip="true"}CiviContribute Component Settings{/ts}', 'CiviContribute Component Settings', 'administer CiviCRM', '', @parent_id, '1', NULL, @add_weight_id + 1 );
 
 VALUES
   ( {$domainID}, 'civicrm/admin/setting/preferences/contribute',      '{ts escape="sql" skip="true"}CiviContribute Component Settings{/ts}', 'CiviContribute Component Settings', 'administer CiviCRM', '', @parent_id, '1', NULL, @add_weight_id + 1 );
 
+CREATE TABLE IF NOT EXISTS `civicrm_mailing_abtest` (
+     `id` int unsigned NOT NULL AUTO_INCREMENT  ,
+     `name` varchar(128)    COMMENT '',
+     `status` varchar(32)    COMMENT '',
+     `mailing_id_a` int unsigned    COMMENT '',
+     `mailing_id_b` int unsigned    COMMENT '',
+     `mailing_id_c` int unsigned    COMMENT '',
+     `domain_id` int unsigned    COMMENT '',
+     `testing_criteria_id` int unsigned    ,
+     `winner_criteria_id` int unsigned    ,
+     `specific_url` varchar(255)    COMMENT '',
+     `declare_winning_time` datetime    COMMENT '',
+     `group_percentage` int unsigned
+,
+    PRIMARY KEY ( `id` )
+)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
+
 -- Insert menu items under "Mailings" for A/B Tests
 SELECT @parent_id := id from `civicrm_navigation` where name = 'Mailings' AND domain_id = {$domainID};
 SELECT @add_weight_id := weight from `civicrm_navigation` where `name` = 'Find Mass SMS' and `parent_id` = @parent_id;
 -- Insert menu items under "Mailings" for A/B Tests
 SELECT @parent_id := id from `civicrm_navigation` where name = 'Mailings' AND domain_id = {$domainID};
 SELECT @add_weight_id := weight from `civicrm_navigation` where `name` = 'Find Mass SMS' and `parent_id` = @parent_id;