-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New table continent. Add country relation to continent table. New fie…
…lds in country tld and dip (dial international prefix)
- Loading branch information
Showing
7 changed files
with
271 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE IF NOT EXISTS `continent` ( | ||
`id` int(1) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(40) COLLATE utf8_unicode_ci NOT NULL, | ||
`code` char(2) COLLATE utf8_unicode_ci NOT NULL, | ||
`a2` char(2) COLLATE utf8_unicode_ci NULL, | ||
`a3` char(3) COLLATE utf8_unicode_ci NULL, | ||
`tld` char(3) COLLATE utf8_unicode_ci NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(1,'Africa','AF', null, null, null); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(2,'Antarctica','AN','aq','ATA','.aq'); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(3,'Asia','AS', null, null, null); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(4,'Oceania','OC', null, null, null); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(5,'Europe','EU',NULL, NULL, '.eu'); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(6,'North America','NA', null, null, null); | ||
INSERT INTO continent (id,name,code,a2,a3,tld) VALUES(7,'South America','SA', null, null, null); |
This file was deleted.
Oops, something went wrong.
7 changes: 5 additions & 2 deletions
7
3166-country/001-3166_country_struture.sql → 3166-country/003-3166_country_struture.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.