Skip to content

Commit

Permalink
Default SQL for geo location info for addresses, and default order st…
Browse files Browse the repository at this point in the history
…atus'
  • Loading branch information
illiphilli committed Jul 26, 2011
1 parent b7357ca commit 073453b
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 0 deletions.
282 changes: 282 additions & 0 deletions framework/modules/addressbook/sql/geo_countries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
-- phpMyAdmin SQL Dump
-- version 3.3.10.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 26, 2011 at 01:04 AM
-- Server version: 5.0.92
-- PHP Version: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `oiclient_kitchen`
--

-- --------------------------------------------------------

--
-- Table structure for table `exponent_geo_country`
--

CREATE TABLE IF NOT EXISTS `exponent_geo_country` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(200) collate utf8_unicode_ci NOT NULL,
`iso_code_2letter` varchar(2) collate utf8_unicode_ci NOT NULL,
`iso_code_3letter` varchar(3) collate utf8_unicode_ci NOT NULL,
`iso_code_number` int(8) NOT NULL,
`active` tinyint(1) NOT NULL,
`is_default` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC AUTO_INCREMENT=240 ;

--
-- Dumping data for table `exponent_geo_country`
--

INSERT INTO `exponent_geo_country` (`id`, `name`, `iso_code_2letter`, `iso_code_3letter`, `iso_code_number`, `active`, `is_default`) VALUES
(1, 'Afghanistan', 'AF', 'AFG', 971, 0, 0),
(2, 'Albania', 'AL', 'ALB', 8, 0, 0),
(3, 'Algeria', 'DZ', 'DZA', 12, 0, 0),
(4, 'American Samoa', 'AS', 'ASM', 840, 0, 0),
(5, 'Andorra', 'AD', 'AND', 978, 0, 0),
(6, 'Angola', 'AO', 'AGO', 973, 0, 0),
(7, 'Anguilla', 'AI', 'AIA', 951, 0, 0),
(8, 'Antarctica', 'AQ', 'ATA', 0, 0, 0),
(9, 'Antigua and Barbuda', 'AG', 'ATG', 951, 0, 0),
(10, 'Argentina', 'AR', 'ARG', 32, 0, 0),
(11, 'Armenia', 'AM', 'ARM', 51, 0, 0),
(12, 'Aruba', 'AW', 'ABW', 533, 0, 0),
(13, 'Australia', 'AU', 'AUS', 36, 0, 0),
(14, 'Austria', 'AT', 'AUT', 978, 0, 0),
(15, 'Azerbaijan', 'AZ', 'AZE', 31, 0, 0),
(16, 'Bahamas', 'BS', 'BHS', 44, 0, 0),
(17, 'Bahrain', 'BH', 'BHR', 48, 0, 0),
(18, 'Bangladesh', 'BD', 'BGD', 50, 0, 0),
(19, 'Barbados', 'BB', 'BRB', 52, 0, 0),
(20, 'Belarus', 'BY', 'BLR', 974, 0, 0),
(21, 'Belgium', 'BE', 'BEL', 978, 0, 0),
(22, 'Belize', 'BZ', 'BLZ', 84, 0, 0),
(23, 'Benin', 'BJ', 'BEN', 952, 0, 0),
(24, 'Bermuda', 'BM', 'BMU', 60, 0, 0),
(25, 'Bhutan', 'BT', 'BTN', 356, 0, 0),
(26, 'Bolivia', 'BO', 'BOL', 68, 0, 0),
(27, 'Bosnia and Herzegowina', 'BA', 'BIH', 977, 0, 0),
(28, 'Botswana', 'BW', 'BWA', 72, 0, 0),
(29, 'Bouvet Island', 'BV', 'BVT', 578, 0, 0),
(30, 'Brazil', 'BR', 'BRA', 986, 0, 0),
(31, 'British Indian Ocean Territory', 'IO', 'IOT', 840, 0, 0),
(32, 'Brunei Darussalam', 'BN', 'BRN', 96, 0, 0),
(33, 'Bulgaria', 'BG', 'BGR', 975, 0, 0),
(34, 'Burkina Faso', 'BF', 'BFA', 952, 0, 0),
(35, 'Burundi', 'BI', 'BDI', 108, 0, 0),
(36, 'Cambodia', 'KH', 'KHM', 116, 0, 0),
(37, 'Cameroon', 'CM', 'CMR', 950, 0, 0),
(38, 'Canada', 'CA', 'CAN', 124, 0, 0),
(39, 'Cape Verde', 'CV', 'CPV', 132, 0, 0),
(40, 'Cayman Islands', 'KY', 'CYM', 136, 0, 0),
(41, 'Central African Republic', 'CF', 'CAF', 950, 0, 0),
(42, 'Chad', 'TD', 'TCD', 950, 0, 0),
(43, 'Chile', 'CL', 'CHL', 152, 0, 0),
(44, 'China', 'CN', 'CHN', 156, 0, 0),
(45, 'Christmas Island', 'CX', 'CXR', 36, 0, 0),
(46, 'Cocos (Keeling) Islands', 'CC', 'CCK', 36, 0, 0),
(47, 'Colombia', 'CO', 'COL', 170, 0, 0),
(48, 'Comoros', 'KM', 'COM', 174, 0, 0),
(49, 'Congo', 'CG', 'COG', 950, 0, 0),
(50, 'Cook Islands', 'CK', 'COK', 554, 0, 0),
(51, 'Costa Rica', 'CR', 'CRI', 188, 0, 0),
(52, 'Cote D''Ivoire', 'CI', 'CIV', 952, 0, 0),
(53, 'Croatia', 'HR', 'HRV', 191, 0, 0),
(54, 'Cuba', 'CU', 'CUB', 192, 0, 0),
(55, 'Cyprus', 'CY', 'CYP', 196, 0, 0),
(56, 'Czech Republic', 'CZ', 'CZE', 203, 0, 0),
(57, 'Denmark', 'DK', 'DNK', 208, 0, 0),
(58, 'Djibouti', 'DJ', 'DJI', 262, 0, 0),
(59, 'Dominica', 'DM', 'DMA', 951, 0, 0),
(60, 'Dominican Republic', 'DO', 'DOM', 214, 0, 0),
(61, 'East Timor', 'TP', 'TMP', 0, 0, 0),
(62, 'Ecuador', 'EC', 'ECU', 840, 0, 0),
(63, 'Egypt', 'EG', 'EGY', 818, 0, 0),
(64, 'El Salvador', 'SV', 'SLV', 222, 0, 0),
(65, 'Equatorial Guinea', 'GQ', 'GNQ', 950, 0, 0),
(66, 'Eritrea', 'ER', 'ERI', 232, 0, 0),
(67, 'Estonia', 'EE', 'EST', 233, 0, 0),
(68, 'Ethiopia', 'ET', 'ETH', 230, 0, 0),
(69, 'Falkland Islands (Malvinas)', 'FK', 'FLK', 238, 0, 0),
(70, 'Faroe Islands', 'FO', 'FRO', 208, 0, 0),
(71, 'Fiji', 'FJ', 'FJI', 242, 0, 0),
(72, 'Finland', 'FI', 'FIN', 978, 0, 0),
(73, 'France', 'FR', 'FRA', 978, 0, 0),
(74, 'France, Metropolitan', 'FX', 'FXX', 978, 0, 0),
(75, 'French Guiana', 'GF', 'GUF', 978, 0, 0),
(76, 'French Polynesia', 'PF', 'PYF', 953, 0, 0),
(77, 'French Southern Territories', 'TF', 'ATF', 978, 0, 0),
(78, 'Gabon', 'GA', 'GAB', 950, 0, 0),
(79, 'Gambia', 'GM', 'GMB', 270, 0, 0),
(80, 'Georgia', 'GE', 'GEO', 981, 0, 0),
(81, 'Germany', 'DE', 'DEU', 978, 0, 0),
(82, 'Ghana', 'GH', 'GHA', 288, 0, 0),
(83, 'Gibraltar', 'GI', 'GIB', 292, 0, 0),
(84, 'Greece', 'GR', 'GRC', 978, 0, 0),
(85, 'Greenland', 'GL', 'GRL', 208, 0, 0),
(86, 'Grenada', 'GD', 'GRD', 951, 0, 0),
(87, 'Guadeloupe', 'GP', 'GLP', 978, 0, 0),
(88, 'Guam', 'GU', 'GUM', 840, 0, 0),
(89, 'Guatemala', 'GT', 'GTM', 320, 0, 0),
(90, 'Guinea', 'GN', 'GIN', 324, 0, 0),
(91, 'Guinea-bissau', 'GW', 'GNB', 624, 0, 0),
(92, 'Guyana', 'GY', 'GUY', 328, 0, 0),
(93, 'Haiti', 'HT', 'HTI', 332, 0, 0),
(94, 'Heard and Mc Donald Islands', 'HM', 'HMD', 36, 0, 0),
(95, 'Honduras', 'HN', 'HND', 340, 0, 0),
(96, 'Hong Kong', 'HK', 'HKG', 344, 0, 0),
(97, 'Hungary', 'HU', 'HUN', 348, 0, 0),
(98, 'Iceland', 'IS', 'ISL', 352, 0, 0),
(99, 'India', 'IN', 'IND', 356, 0, 0),
(100, 'Indonesia', 'ID', 'IDN', 360, 0, 0),
(101, 'Iran (Islamic Republic of)', 'IR', 'IRN', 364, 0, 0),
(102, 'Iraq', 'IQ', 'IRQ', 368, 0, 0),
(103, 'Ireland', 'IE', 'IRL', 978, 0, 0),
(104, 'Israel', 'IL', 'ISR', 376, 0, 0),
(105, 'Italy', 'IT', 'ITA', 978, 0, 0),
(106, 'Jamaica', 'JM', 'JAM', 388, 0, 0),
(107, 'Japan', 'JP', 'JPN', 392, 0, 0),
(108, 'Jordan', 'JO', 'JOR', 400, 0, 0),
(109, 'Kazakhstan', 'KZ', 'KAZ', 398, 0, 0),
(110, 'Kenya', 'KE', 'KEN', 404, 0, 0),
(111, 'Kiribati', 'KI', 'KIR', 36, 0, 0),
(112, 'Korea, Democratic People''s Republic of', 'KP', 'PRK', 408, 0, 0),
(113, 'Korea, Republic of', 'KR', 'KOR', 410, 0, 0),
(114, 'Kuwait', 'KW', 'KWT', 414, 0, 0),
(115, 'Kyrgyzstan', 'KG', 'KGZ', 417, 0, 0),
(116, 'Lao People''s Democratic Republic', 'LA', 'LAO', 418, 0, 0),
(117, 'Latvia', 'LV', 'LVA', 428, 0, 0),
(118, 'Lebanon', 'LB', 'LBN', 422, 0, 0),
(119, 'Lesotho', 'LS', 'LSO', 710, 0, 0),
(120, 'Liberia', 'LR', 'LBR', 430, 0, 0),
(121, 'Libyan Arab Jamahiriya', 'LY', 'LBY', 434, 0, 0),
(122, 'Liechtenstein', 'LI', 'LIE', 756, 0, 0),
(123, 'Lithuania', 'LT', 'LTU', 440, 0, 0),
(124, 'Luxembourg', 'LU', 'LUX', 978, 0, 0),
(125, 'Macao', 'MO', 'MAC', 446, 0, 0),
(126, 'Macedonia, The Former Yugoslav Republic of', 'MK', 'MKD', 807, 0, 0),
(127, 'Madagascar', 'MG', 'MDG', 969, 0, 0),
(128, 'Malawi', 'MW', 'MWI', 454, 0, 0),
(129, 'Malaysia', 'MY', 'MYS', 458, 0, 0),
(130, 'Maldives', 'MV', 'MDV', 462, 0, 0),
(131, 'Mali', 'ML', 'MLI', 952, 0, 0),
(132, 'Malta', 'MT', 'MLT', 470, 0, 0),
(133, 'Marshall Islands', 'MH', 'MHL', 840, 0, 0),
(134, 'Martinique', 'MQ', 'MTQ', 978, 0, 0),
(135, 'Mauritania', 'MR', 'MRT', 478, 0, 0),
(136, 'Mauritius', 'MU', 'MUS', 480, 0, 0),
(137, 'Mayotte', 'YT', 'MYT', 978, 0, 0),
(138, 'Mexico', 'MX', 'MEX', 484, 0, 0),
(139, 'Micronesia, Federated States of', 'FM', 'FSM', 840, 0, 0),
(140, 'Moldova, Republic of', 'MD', 'MDA', 498, 0, 0),
(141, 'Monaco', 'MC', 'MCO', 978, 0, 0),
(142, 'Mongolia', 'MN', 'MNG', 496, 0, 0),
(143, 'Montserrat', 'MS', 'MSR', 951, 0, 0),
(144, 'Morocco', 'MA', 'MAR', 504, 0, 0),
(145, 'Mozambique', 'MZ', 'MOZ', 508, 0, 0),
(146, 'Myanmar', 'MM', 'MMR', 104, 0, 0),
(147, 'Namibia', 'NA', 'NAM', 710, 0, 0),
(148, 'Nauru', 'NR', 'NRU', 36, 0, 0),
(149, 'Nepal', 'NP', 'NPL', 524, 0, 0),
(150, 'Netherlands', 'NL', 'NLD', 978, 0, 0),
(151, 'Netherlands Antilles', 'AN', 'ANT', 532, 0, 0),
(152, 'New Caledonia', 'NC', 'NCL', 953, 0, 0),
(153, 'New Zealand', 'NZ', 'NZL', 554, 0, 0),
(154, 'Nicaragua', 'NI', 'NIC', 558, 0, 0),
(155, 'Niger', 'NE', 'NER', 952, 0, 0),
(156, 'Nigeria', 'NG', 'NGA', 566, 0, 0),
(157, 'Niue', 'NU', 'NIU', 554, 0, 0),
(158, 'Norfolk Island', 'NF', 'NFK', 36, 0, 0),
(159, 'Northern Mariana Islands', 'MP', 'MNP', 840, 0, 0),
(160, 'Norway', 'NO', 'NOR', 578, 0, 0),
(161, 'Oman', 'OM', 'OMN', 512, 0, 0),
(162, 'Pakistan', 'PK', 'PAK', 586, 0, 0),
(163, 'Palau', 'PW', 'PLW', 840, 0, 0),
(164, 'Panama', 'PA', 'PAN', 590, 0, 0),
(165, 'Papua New Guinea', 'PG', 'PNG', 598, 0, 0),
(166, 'Paraguay', 'PY', 'PRY', 600, 0, 0),
(167, 'Peru', 'PE', 'PER', 604, 0, 0),
(168, 'Philippines', 'PH', 'PHL', 608, 0, 0),
(169, 'Pitcairn', 'PN', 'PCN', 554, 0, 0),
(170, 'Poland', 'PL', 'POL', 985, 0, 0),
(171, 'Portugal', 'PT', 'PRT', 978, 0, 0),
(172, 'Puerto Rico', 'PR', 'PRI', 840, 0, 0),
(173, 'Qatar', 'QA', 'QAT', 634, 0, 0),
(174, 'Reunion', 'RE', 'REU', 978, 0, 0),
(175, 'Romania', 'RO', 'ROM', 642, 0, 0),
(176, 'Russian Federation', 'RU', 'RUS', 810, 0, 0),
(177, 'Rwanda', 'RW', 'RWA', 646, 0, 0),
(178, 'Saint Kitts and Nevis', 'KN', 'KNA', 951, 0, 0),
(179, 'Saint Lucia', 'LC', 'LCA', 951, 0, 0),
(180, 'Saint Vincent and the Grenadines', 'VC', 'VCT', 951, 0, 0),
(181, 'Samoa', 'WS', 'WSM', 882, 0, 0),
(182, 'San Marino', 'SM', 'SMR', 978, 0, 0),
(183, 'Sao Tome and Principe', 'ST', 'STP', 678, 0, 0),
(184, 'Saudi Arabia', 'SA', 'SAU', 682, 0, 0),
(185, 'Senegal', 'SN', 'SEN', 952, 0, 0),
(186, 'Seychelles', 'SC', 'SYC', 690, 0, 0),
(187, 'Sierra Leone', 'SL', 'SLE', 694, 0, 0),
(188, 'Singapore', 'SG', 'SGP', 702, 0, 0),
(189, 'Slovakia (Slovak Republic)', 'SK', 'SVK', 703, 0, 0),
(190, 'Slovenia', 'SI', 'SVN', 705, 0, 0),
(191, 'Solomon Islands', 'SB', 'SLB', 90, 0, 0),
(192, 'Somalia', 'SO', 'SOM', 706, 0, 0),
(193, 'South Africa', 'ZA', 'ZAF', 710, 0, 0),
(194, 'South Georgia and the South Sandwich Islands', 'GS', 'SGS', 0, 0, 0),
(195, 'Spain', 'ES', 'ESP', 978, 0, 0),
(196, 'Sri Lanka', 'LK', 'LKA', 144, 0, 0),
(197, 'St. Helena', 'SH', 'SHN', 654, 0, 0),
(198, 'St. Pierre and Miquelon', 'PM', 'SPM', 978, 0, 0),
(199, 'Sudan', 'SD', 'SDN', 736, 0, 0),
(200, 'Suriname', 'SR', 'SUR', 968, 0, 0),
(201, 'Svalbard and Jan Mayen Islands', 'SJ', 'SJM', 578, 0, 0),
(202, 'Swaziland', 'SZ', 'SWZ', 748, 0, 0),
(203, 'Sweden', 'SE', 'SWE', 752, 0, 0),
(204, 'Switzerland', 'CH', 'CHE', 756, 0, 0),
(205, 'Syrian Arab Republic', 'SY', 'SYR', 760, 0, 0),
(206, 'Taiwan', 'TW', 'TWN', 901, 0, 0),
(207, 'Tajikistan', 'TJ', 'TJK', 972, 0, 0),
(208, 'Tanzania, United Republic of', 'TZ', 'TZA', 834, 0, 0),
(209, 'Thailand', 'TH', 'THA', 764, 0, 0),
(210, 'Togo', 'TG', 'TGO', 952, 0, 0),
(211, 'Tokelau', 'TK', 'TKL', 554, 0, 0),
(212, 'Tonga', 'TO', 'TON', 776, 0, 0),
(213, 'Trinidad and Tobago', 'TT', 'TTO', 780, 0, 0),
(214, 'Tunisia', 'TN', 'TUN', 788, 0, 0),
(215, 'Turkey', 'TR', 'TUR', 792, 0, 0),
(216, 'Turkmenistan', 'TM', 'TKM', 795, 0, 0),
(217, 'Turks and Caicos Islands', 'TC', 'TCA', 840, 0, 0),
(218, 'Tuvalu', 'TV', 'TUV', 36, 0, 0),
(219, 'Uganda', 'UG', 'UGA', 800, 0, 0),
(220, 'Ukraine', 'UA', 'UKR', 980, 0, 0),
(221, 'United Arab Emirates', 'AE', 'ARE', 784, 0, 0),
(222, 'United Kingdom', 'GB', 'GBR', 826, 0, 0),
(223, 'United States', 'US', 'USA', 840, 1, 1),
(224, 'United States Minor Outlying Islands', 'UM', 'UMI', 840, 0, 0),
(225, 'Uruguay', 'UY', 'URY', 858, 0, 0),
(226, 'Uzbekistan', 'UZ', 'UZB', 860, 0, 0),
(227, 'Vanuatu', 'VU', 'VUT', 548, 0, 0),
(228, 'Vatican City State (Holy See)', 'VA', 'VAT', 978, 0, 0),
(229, 'Venezuela', 'VE', 'VEN', 862, 0, 0),
(230, 'Viet Nam', 'VN', 'VNM', 704, 0, 0),
(231, 'Virgin Islands (British)', 'VG', 'VGB', 840, 0, 0),
(232, 'Virgin Islands (U.S.)', 'VI', 'VIR', 840, 0, 0),
(233, 'Wallis and Futuna Islands', 'WF', 'WLF', 953, 0, 0),
(234, 'Western Sahara', 'EH', 'ESH', 504, 0, 0),
(235, 'Yemen', 'YE', 'YEM', 886, 0, 0),
(236, 'Yugoslavia', 'YU', 'YUG', 0, 0, 0),
(237, 'Zaire', 'ZR', 'ZAR', 0, 0, 0),
(238, 'Zambia', 'ZM', 'ZMB', 894, 0, 0),
(239, 'Zimbabwe', 'ZW', 'ZWE', 716, 0, 0);

0 comments on commit 073453b

Please sign in to comment.