Fix 'Table already exists' error when running 5.50 upgrade twice
authorColeman Watts <coleman@civicrm.org>
Wed, 4 May 2022 01:01:31 +0000 (21:01 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 4 May 2022 01:01:31 +0000 (21:01 -0400)
CRM/Upgrade/Incremental/sql/5.50.alpha1.mysql.tpl

index e85f239dc9a509cff77d873474ae8f0c03d0c841..5c7cea28d17d3b91b234513441d0f47b9ca51d73 100644 (file)
@@ -1,6 +1,6 @@
 {* file to handle db changes in 5.50.alpha1 during upgrade *}
 
-CREATE TABLE `civicrm_user_job` (
+CREATE TABLE IF NOT EXISTS `civicrm_user_job` (
 `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Job ID',
 `name` varchar(64) COMMENT 'Unique name for job.',
 `created_id` int unsigned COMMENT 'FK to contact table.',