Queue XML/DAO - Add upgrade step to 5.47.alpha1.mysql.tpl
authorTim Otten <totten@civicrm.org>
Fri, 14 Jan 2022 05:35:56 +0000 (21:35 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 14 Jan 2022 05:35:56 +0000 (21:35 -0800)
CRM/Upgrade/Incremental/sql/5.47.alpha1.mysql.tpl

index dd955c3e3241988abd87881daae8b9c7627f6b8c..dadd1c58fdd6b2ee8bd1376e91ef8968d8bcbe64 100644 (file)
@@ -1,5 +1,15 @@
 {* file to handle db changes in 5.47.alpha1 during upgrade *}
 
+CREATE TABLE IF NOT EXISTS `civicrm_queue` (
+  `id` int unsigned NOT NULL AUTO_INCREMENT,
+  `name` varchar(64) NOT NULL COMMENT 'Name of the queue',
+  `type` varchar(64) NOT NULL COMMENT 'Type of the queue',
+  `is_autorun` tinyint COMMENT 'Should the standard background attempt to autorun tasks in this queue?',
+  PRIMARY KEY (`id`),
+  UNIQUE INDEX `UI_name`(name)
+)
+ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
+
 UPDATE `civicrm_navigation` SET `is_active` = 0 WHERE `is_active` IS NULL;
 UPDATE `civicrm_navigation` SET `weight` = 0 WHERE `weight` IS NULL;
 ALTER TABLE `civicrm_navigation`