Skip to content

Commit

Permalink
#1870 - State to be optional with exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
abrookbanks committed Mar 7, 2018
1 parent ee06d06 commit 01c4032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup/db/install/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -615,4 +615,5 @@ INSERT INTO `CubeCart_geo_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALU
INSERT INTO `CubeCart_geo_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALUES (241, 'GG', 'Guernsey', 'GGY', 831); #EOQ
INSERT INTO `CubeCart_geo_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALUES (242, 'JE', 'Jersey', 'JEY', 832); #EOQ
INSERT INTO `CubeCart_geo_country` (`id`, `iso`, `name`, `iso3`, `numcode`) VALUES (243, 'IM', 'Isle of Man', 'IMN', 833); #EOQ
UPDATE `CubeCart_geo_country` SET `eu` = '1' WHERE `iso` IN('BE','BG','CZ','DK','DE','EE','GB','GR','IE','ES','FR','HR','IT','CY','LV','LT','LU','HU','MT','NL','AT','PL','PT','RO','SI','SK','FI','SE'); #EOQ
UPDATE `CubeCart_geo_country` SET `eu` = '1' WHERE `iso` IN('BE','BG','CZ','DK','DE','EE','GB','GR','IE','ES','FR','HR','IT','CY','LV','LT','LU','HU','MT','NL','AT','PL','PT','RO','SI','SK','FI','SE'); #EOQ
UPDATE `CubeCart_geo_country` SET `status` = 2 WHERE `iso` NOT IN('AR', 'BR', 'CA', 'CN', 'ID', 'IN', 'JP', 'MX', 'TH', 'US'); #EOQ
3 changes: 2 additions & 1 deletion setup/db/upgrade/6.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ ALTER TABLE `CubeCart_newsletter_subscriber` ADD `imported` TINYINT(1) DEFAULT '
ALTER TABLE `CubeCart_newsletter_subscriber` ADD `double_opt` TINYINT(1) DEFAULT '0'; #EOQ
ALTER TABLE `CubeCart_newsletter_subscriber` CHANGE `customer_id` `customer_id` INT(10) UNSIGNED NULL DEFAULT '0'; #EOQ
ALTER TABLE `CubeCart_newsletter_subscriber` ADD INDEX (`double_opt`); #EOQ
ALTER TABLE `CubeCart_newsletter_subscriber` ADD INDEX (`status`); #EOQ
ALTER TABLE `CubeCart_newsletter_subscriber` ADD INDEX (`status`); #EOQ
UPDATE `CubeCart_geo_country` SET `status` = 2 WHERE `iso` NOT IN('AR', 'BR', 'CA', 'CN', 'ID', 'IN', 'JP', 'MX', 'TH', 'US'); #EOQ

0 comments on commit 01c4032

Please sign in to comment.