From: Coleman Watts Date: Wed, 4 May 2022 01:01:31 +0000 (-0400) Subject: Fix 'Table already exists' error when running 5.50 upgrade twice X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=514e231a1eb3d74131d20fce2650e33459da3e17;p=civicrm-core.git Fix 'Table already exists' error when running 5.50 upgrade twice --- diff --git a/CRM/Upgrade/Incremental/sql/5.50.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/5.50.alpha1.mysql.tpl index e85f239dc9..5c7cea28d1 100644 --- a/CRM/Upgrade/Incremental/sql/5.50.alpha1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/5.50.alpha1.mysql.tpl @@ -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.',