Add North and South Island to New Zealand
So let’s say that like me, you live in New Zealand and want to add 2 regions: North Island and South Island. The country id for New Zealand is NZ, the region code is a unique identifier so I’m going with NORTH and at the moment I’m only interested in the en_US locale.First I will insert North Island into directory_country_region as follows:
INSERT INTO `directory_country_region` (`region_id`,`country_id`,`code`,`default_name`) VALUES (NULL,'NZ','NORTH','North Island');
SELECT * FROM `directory_country_region` WHERE `country_id`='NZ' AND`code`='NORTH' AND `default_name`='North Island';
INSERT INTO `directory_country_region_name` (`locale`,`region_id`,`name`) VALUES ('en_US','320','North Island');
No comments:
Post a Comment
Note: only a member of this blog may post a comment.