CRM-14755 - upgrade fails on insert country
authorEileen McNaughton <eileen@mcnaughty.com>
Tue, 27 May 2014 08:22:19 +0000 (20:22 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 27 May 2014 08:29:32 +0000 (20:29 +1200)
CRM/Upgrade/Incremental/sql/4.3.alpha1.mysql.tpl

index dd8510d6f8fdb56a69570f9c1663ef0273bc3d67..d12b119bb06acb15feaeb364857499458adcf021 100644 (file)
@@ -125,7 +125,7 @@ ALTER TABLE civicrm_uf_field
 -- CRM-1115
 -- note that country names are not translated in the DB
 SELECT @region_id   := max(id) from civicrm_worldregion where name = "Europe and Central Asia";
-INSERT INTO civicrm_country (name,iso_code,region_id,is_province_abbreviated) VALUES("Kosovo", "XK", @region_id, 0);
+INSERT IGNORE INTO civicrm_country (name,iso_code,region_id,is_province_abbreviated) VALUES("Kosovo", "XK", @region_id, 0);
 
 UPDATE civicrm_country SET name = 'Libya' WHERE name LIKE 'Libyan%';
 UPDATE civicrm_country SET name = 'Congo, Republic of the' WHERE name = 'Congo';