Skip to content

Commit

Permalink
modify Guangzhou data
Browse files Browse the repository at this point in the history
  • Loading branch information
eduosi committed Feb 13, 2014
1 parent 3658863 commit c0bcc33
Show file tree
Hide file tree
Showing 7 changed files with 3,623 additions and 45 deletions.
18 changes: 18 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Changes 3.0
13 Feb 2014
*) 删除广州市萝岗区
*) 广州市从化市更名为广州市从化区
*) 广州市增城市更名为广州市增城区

更新脚本:
DELETE FROM `district` WHERE `id`='2222';
UPDATE `district` SET `suffix`='区' WHERE `id`='2223';
UPDATE `district` SET `suffix`='区' WHERE `id`='2224';

Changes 2.0.

*)

Changes 1.0

*) The first public version.
5 changes: 2 additions & 3 deletions district-full.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2220,9 +2220,8 @@ id name parentid initial initials pinyin extra suffix code area_code order
2219 番禺 321 f fy fanyu 区 440113 020 7
2220 花都 321 h hd huadou 区 440114 020 8
2221 南沙 321 n ns nansha 区 440115 020 9
2222 萝岗 321 l lg luogang 区 440116 020 10
2223 增城 321 z zc zengcheng 市 440183 020 11
2224 从化 321 c ch conghua 市 440184 020 12
2223 增城 321 z zc zengcheng 区 440183 020 11
2224 从化 321 c ch conghua 区 440184 020 12
2225 武江 322 w wj wujiang 区 440203 0751 1
2226 浈江 322 z zj zhenjiang 区 440204 0751 2
2227 曲江 322 q qj qujiang 区 440205 0751 3
Expand Down
3,622 changes: 3,595 additions & 27 deletions district-full.sql

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion district-simple.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,6 @@ id name parentid order
2219 番禺 321 7
2220 花都 321 8
2221 南沙 321 9
2222 萝岗 321 10
2223 增城 321 11
2224 从化 321 12
2225 武江 322 1
Expand Down
12 changes: 4 additions & 8 deletions district-simple.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ MySQL - 5.6.14-log
/*!40101 SET NAMES utf8 */;

create table `district` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(10) NOT NULL,
`parentid` int unsigned NOT NULL DEFAULT '0',
`order` tinyint(2) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `parentid` (`parentid`),
KEY `initial` (`initial`)
`id` int ,
`name` varchar (30),
`parentid` int ,
`order` tinyint (2)
);
insert into `district` (`id`, `name`, `parentid`, `order`) values('1','北京','0','1');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2','天津','0','2');
Expand Down Expand Up @@ -2235,7 +2232,6 @@ insert into `district` (`id`, `name`, `parentid`, `order`) values('2218','黄埔
insert into `district` (`id`, `name`, `parentid`, `order`) values('2219','番禺','321','7');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2220','花都','321','8');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2221','南沙','321','9');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2222','萝岗','321','10');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2223','增城','321','11');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2224','从化','321','12');
insert into `district` (`id`, `name`, `parentid`, `order`) values('2225','武江','322','1');
Expand Down
5 changes: 2 additions & 3 deletions district-standard.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2220,9 +2220,8 @@ id name parentid initial initials pinyin suffix order
2219 番禺 321 f fy fanyu 区 7
2220 花都 321 h hd huadou 区 8
2221 南沙 321 n ns nansha 区 9
2222 萝岗 321 l lg luogang 区 10
2223 增城 321 z zc zengcheng 市 11
2224 从化 321 c ch conghua 市 12
2223 增城 321 z zc zengcheng 区 11
2224 从化 321 c ch conghua 区 12
2225 武江 322 w wj wujiang 区 1
2226 浈江 322 z zj zhenjiang 区 2
2227 曲江 322 q qj qujiang 区 3
Expand Down
5 changes: 2 additions & 3 deletions district-standard.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2236,9 +2236,8 @@ insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2219','番禺','321','f','fy','fanyu','区','7');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2220','花都','321','h','hd','huadou','区','8');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2221','南沙','321','n','ns','nansha','区','9');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2222','萝岗','321','l','lg','luogang','区','10');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2223','增城','321','z','zc','zengcheng','市','11');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2224','从化','321','c','ch','conghua','市','12');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2223','增城','321','z','zc','zengcheng','区','11');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2224','从化','321','c','ch','conghua','区','12');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2225','武江','322','w','wj','wujiang','区','1');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2226','浈江','322','z','zj','zhenjiang','区','2');
insert into `district` (`id`, `name`, `parentid`, `initial`, `initials`, `pinyin`, `suffix`, `order`) values('2227','曲江','322','q','qj','qujiang','区','3');
Expand Down

0 comments on commit c0bcc33

Please sign in to comment.