This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/doc/database/upgrade/v1.1.35.sql
2020-04-25 22:20:29 +08:00

67 lines
12 KiB
SQL

UPDATE `yoshop_region` SET `name`='省直辖县级行政区划',`merger_name`='中国,湖北省,省直辖县级行政区划' WHERE (`id`='1822');
UPDATE `yoshop_region` SET `merger_name`='中国,湖北省,省直辖县级行政区划,仙桃市' WHERE (`id`='1823');
UPDATE `yoshop_region` SET `merger_name`='中国,湖北省,省直辖县级行政区划,潜江市' WHERE (`id`='1824');
UPDATE `yoshop_region` SET `merger_name`='中国,湖北省,省直辖县级行政区划,天门市' WHERE (`id`='1825');
UPDATE `yoshop_region` SET `merger_name`='中国,湖北省,省直辖县级行政区划,神农架林区' WHERE (`id`='1826');
UPDATE `yoshop_region` SET `shortname`='', `name`='', `merger_name`='中国,重庆,县', `pinyin`='xian' WHERE (`id`='2363');
UPDATE `yoshop_region` SET `id`='2325', `pid`='2324', `shortname`='万州', `name`='万州区', `merger_name`='中国,重庆,重庆市,万州区', `level`='3', `pinyin`='wanzhou', `code`='023', `zip_code`='404000', `first`='W', `lng`='108.40869', `lat`='30.80788' WHERE (`id`='2325');
UPDATE `yoshop_region` SET `id`='2326', `pid`='2324', `shortname`='涪陵', `name`='涪陵区', `merger_name`='中国,重庆,重庆市,涪陵区', `level`='3', `pinyin`='fuling', `code`='023', `zip_code`='408000', `first`='F', `lng`='107.39007', `lat`='29.70292' WHERE (`id`='2326');
UPDATE `yoshop_region` SET `id`='2327', `pid`='2324', `shortname`='渝中', `name`='渝中区', `merger_name`='中国,重庆,重庆市,渝中区', `level`='3', `pinyin`='yuzhong', `code`='023', `zip_code`='400010', `first`='Y', `lng`='106.56901', `lat`='29.55279' WHERE (`id`='2327');
UPDATE `yoshop_region` SET `id`='2328', `pid`='2324', `shortname`='大渡口', `name`='大渡口区', `merger_name`='中国,重庆,重庆市,大渡口区', `level`='3', `pinyin`='dadukou', `code`='023', `zip_code`='400080', `first`='D', `lng`='106.48262', `lat`='29.48447' WHERE (`id`='2328');
UPDATE `yoshop_region` SET `id`='2329', `pid`='2324', `shortname`='江北', `name`='江北区', `merger_name`='中国,重庆,重庆市,江北区', `level`='3', `pinyin`='jiangbei', `code`='023', `zip_code`='400020', `first`='J', `lng`='106.57434', `lat`='29.60658' WHERE (`id`='2329');
UPDATE `yoshop_region` SET `id`='2330', `pid`='2324', `shortname`='沙坪坝', `name`='沙坪坝区', `merger_name`='中国,重庆,重庆市,沙坪坝区', `level`='3', `pinyin`='shapingba', `code`='023', `zip_code`='400030', `first`='S', `lng`='106.45752', `lat`='29.54113' WHERE (`id`='2330');
UPDATE `yoshop_region` SET `id`='2331', `pid`='2324', `shortname`='九龙坡', `name`='九龙坡区', `merger_name`='中国,重庆,重庆市,九龙坡区', `level`='3', `pinyin`='jiulongpo', `code`='023', `zip_code`='400050', `first`='J', `lng`='106.51107', `lat`='29.50197' WHERE (`id`='2331');
UPDATE `yoshop_region` SET `id`='2332', `pid`='2324', `shortname`='南岸', `name`='南岸区', `merger_name`='中国,重庆,重庆市,南岸区', `level`='3', `pinyin`='nan\'an', `code`='023', `zip_code`='400064', `first`='N', `lng`='106.56347', `lat`='29.52311' WHERE (`id`='2332');
UPDATE `yoshop_region` SET `id`='2333', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='beibei', `code`='023', `zip_code`='400700', `first`='B', `lng`='106.39614', `lat`='29.80574' WHERE (`id`='2333');
UPDATE `yoshop_region` SET `id`='2334', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='qijiang', `code`='023', `zip_code`='400800', `first`=NULL, `lng`='106.926779', `lat`='28.960656' WHERE (`id`='2334');
UPDATE `yoshop_region` SET `id`='2335', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='dazu', `code`='023', `zip_code`='400900', `first`='D', `lng`='105.768121', `lat`='29.484025' WHERE (`id`='2335');
UPDATE `yoshop_region` SET `id`='2336', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='yubei', `code`='023', `zip_code`='401120', `first`='Y', `lng`='106.6307', `lat`='29.7182' WHERE (`id`='2336');
UPDATE `yoshop_region` SET `id`='2337', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='banan', `code`='023', `zip_code`='401320', `first`='B', `lng`='106.52365', `lat`='29.38311' WHERE (`id`='2337');
UPDATE `yoshop_region` SET `id`='2338', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='qianjiang', `code`='023', `zip_code`='409700', `first`='Q', `lng`='108.7709', `lat`='29.5332' WHERE (`id`='2338');
UPDATE `yoshop_region` SET `id`='2339', `pid`='2324', `shortname`='寿', `name`='寿', `merger_name`=',,,寿', `level`='3', `pinyin`='changshou', `code`='023', `zip_code`='401220', `first`='C', `lng`='107.08166', `lat`='29.85359' WHERE (`id`='2339');
UPDATE `yoshop_region` SET `id`='2340', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='jiangjin', `code`='023', `zip_code`='402260', `first`='J', `lng`='106.25912', `lat`='29.29008' WHERE (`id`='2340');
UPDATE `yoshop_region` SET `id`='2341', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='hechuan', `code`='023', `zip_code`='401520', `first`='H', `lng`='106.27633', `lat`='29.97227' WHERE (`id`='2341');
UPDATE `yoshop_region` SET `id`='2342', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='yongchuan', `code`='023', `zip_code`='402160', `first`='Y', `lng`='105.927', `lat`='29.35593' WHERE (`id`='2342');
UPDATE `yoshop_region` SET `id`='2343', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='nanchuan', `code`='023', `zip_code`='408400', `first`='N', `lng`='107.09936', `lat`='29.15751' WHERE (`id`='2343');
UPDATE `yoshop_region` SET `id`='2344', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='bishan', `code`='023', `zip_code`='402760', `first`=NULL, `lng`='106.231126', `lat`='29.593581' WHERE (`id`='2344');
UPDATE `yoshop_region` SET `id`='2345', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='tongliang', `code`='023', `zip_code`='402560', `first`='T', `lng`='106.054948', `lat`='29.839944' WHERE (`id`='2345');
UPDATE `yoshop_region` SET `id`='2346', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='tongnan', `code`='023', `zip_code`='402660', `first`=NULL, `lng`='105.84005', `lat`='30.1912' WHERE (`id`='2346');
UPDATE `yoshop_region` SET `id`='2347', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='rongchang', `code`='023', `zip_code`='402460', `first`='R', `lng`='105.59442', `lat`='29.40488' WHERE (`id`='2347');
UPDATE `yoshop_region` SET `id`='2348', `pid`='2324', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='liangping', `code`='023', `zip_code`='405200', `first`='L', `lng`='107.79998', `lat`='30.67545' WHERE (`id`='2348');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='chengkou', `code`='023', `zip_code`='405900', `first`='C', `lng`='108.66513', `lat`='31.94801' WHERE (`id`='2349');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='fengdu', `code`='023', `zip_code`='408200', `first`='F', `lng`='107.73098', `lat`='29.86348' WHERE (`id`='2350');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='dianjiang', `code`='023', `zip_code`='408300', `first`='D', `lng`='107.35446', `lat`='30.33359' WHERE (`id`='2351');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='wulong', `code`='023', `zip_code`='408500', `first`='W', `lng`='107.7601', `lat`='29.32548' WHERE (`id`='2352');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='zhongxian', `code`='023', `zip_code`='404300', `first`='Z', `lng`='108.03689', `lat`='30.28898' WHERE (`id`='2353');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='kaixian', `code`='023', `zip_code`='405400', `first`='K', `lng`='108.39306', `lat`='31.16095' WHERE (`id`='2354');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='yunyang', `code`='023', `zip_code`='404500', `first`='Y', `lng`='108.69726', `lat`='30.93062' WHERE (`id`='2355');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='fengjie', `code`='023', `zip_code`='404600', `first`='F', `lng`='109.46478', `lat`='31.01825' WHERE (`id`='2356');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='wushan', `code`='023', `zip_code`='404700', `first`='W', `lng`='109.87814', `lat`='31.07458' WHERE (`id`='2357');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='wuxi', `code`='023', `zip_code`='405800', `first`='W', `lng`='109.63128', `lat`='31.39756' WHERE (`id`='2358');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='shizhu', `code`='023', `zip_code`='409100', `first`='S', `lng`='108.11389', `lat`='30.00054' WHERE (`id`='2359');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='xiushan', `code`='023', `zip_code`='409900', `first`='X', `lng`='108.98861', `lat`='28.45062' WHERE (`id`='2360');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='youyang', `code`='023', `zip_code`='409800', `first`='Y', `lng`='108.77212', `lat`='28.8446' WHERE (`id`='2361');
UPDATE `yoshop_region` SET `pid`='2363', `shortname`='', `name`='', `merger_name`=',,,', `level`='3', `pinyin`='pengshui', `code`='023', `zip_code`='409600', `first`='P', `lng`='108.16638', `lat`='29.29516' WHERE (`id`='2362');
DELETE FROM `yoshop_region` WHERE (`id`='2364');
DELETE FROM `yoshop_region` WHERE (`id`='2365');
DELETE FROM `yoshop_region` WHERE (`id`='2366');
ALTER TABLE `yoshop_goods_sku`
MODIFY COLUMN `goods_sales` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '()' AFTER `stock_num`;
ALTER TABLE `yoshop_sharing_goods_sku`
MODIFY COLUMN `goods_sales` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '()' AFTER `stock_num`;