-- State / province
-- CRM-4534 CRM-4686 CRM-4769
- INSERT INTO civicrm_state_province
+ INSERT IGNORE INTO civicrm_state_province
(id, name, abbreviation, country_id)
VALUES
(5218, 'Distrito Federal', 'DIF', 1140),
WHERE civicrm_navigation.name= 'New Grant';
-- CRM-5048
-INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
+INSERT IGNORE INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
(10010, 1107, "Bar", "Barletta-Andria-Trani"),
(10011, 1107, "Fer", "Fermo"),
(10012, 1107, "Mon", "Monza e Brianza");
-- Create additional Taiwan provinces
SELECT @country_id := id from civicrm_country where name = 'Taiwan';
-INSERT INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
+INSERT IGNORE INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
( @country_id, 'TXG', 'Taichung City' ),
( @country_id, 'KHH', 'Kaohsiung City' ),
( @country_id, 'TPE', 'Taipei City' ),
( @country_id, 'CYI', 'Chiayi City' ),
( @country_id, 'HSZ', 'Hsinchu City' ),
-( @country_id, 'TNN', 'Tainan City' );
\ No newline at end of file
+( @country_id, 'TNN', 'Tainan City' );
+
-- CRM-5628
SELECT @country_id := id from civicrm_country where name = 'Haiti';
-INSERT INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
+INSERT IGNORE INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
( @country_id, 'AR', 'Artibonite' ),
( @country_id, 'CE', 'Centre' ),
( @country_id, 'NI', 'Nippes' ),
(@option_group_id_mt, {localize}'Export Activities'{/localize}, @max_val+1, 'Export Activity', NULL, 0, 0, @max_wt+1, 0, 1, 1);
-- CRM-6063
- INSERT INTO civicrm_state_province
+ INSERT IGNORE INTO civicrm_state_province
(`name`, `abbreviation`, `country_id` )
VALUES
( 'Andorra la Vella', '07', 1005 ),
DELETE FROM `civicrm_state_province` WHERE `name` IN ('Freeport', 'Fresh Creek', 'Governor\'s Harbour' , 'Green Turtle Cay', 'Harbour Island', 'High Rock', 'Kemps Bay', 'Marsh Harbour','Nicholls Town and Berry Islands' ,'Rock Sound','Sandy Point','San Salvador and Rum Cay','Bandundu', 'Bas-Congo' ,'Haut-Congo', 'Kasai-Occidental','Katanga', 'Orientale' );
-INSERT INTO civicrm_state_province
+INSERT IGNORE INTO civicrm_state_province
(`name`, `abbreviation`, `country_id` )
VALUES
( 'Abaco Islands', 'AB',1212),
ALTER TABLE civicrm_custom_field MODIFY end_date_years INT(10);
-- CRM-8009
-INSERT INTO civicrm_state_province
+INSERT IGNORE INTO civicrm_state_province
(`name`, `abbreviation`, `country_id` )
VALUES
( 'Toledo' , 'TO', '1198' ),
DELETE FROM civicrm_currency WHERE name = 'EEK';
-- CRM-8769
-INSERT INTO civicrm_state_province
+INSERT IGNORE INTO civicrm_state_province
(`name`, `abbreviation`, `country_id`)
VALUES
('Metropolitan Manila' , 'MNL', '1170');
{* file to handle db changes in 4.4.beta1 during upgrade *}
-- CRM-13314 Added States for Uruguay
-INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
+INSERT IGNORE INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES
(NULL, 1229, "FL", "Florida"),
(NULL, 1229, "RN", "Rio Negro"),
(NULL, 1229, "SJ", "San Jose");