ALTER TABLE price_publish ADD PRICE_ZHANGZHOUKFQ decimal(16,4) NULL COMMENT '漳州开发区价格';
ALTER TABLE price_publish
  MODIFY COLUMN PRICE_ZHANGZHOUKFQ decimal(16,4) COMMENT '漳州开发区价格' AFTER PRICE_PINTAN;

create table DATA_NETWORK (
  ID    int auto_increment primary key,
  MATERIAL_ID    varchar(128) null comment '材料id',
  SPEC    varchar(128) null comment '规格',
  UNIT    varchar(128) null comment '单位',
  BRAND    varchar(128) null comment '品牌',
  NAME  varchar(128)   null comment '名称',
  PRICE decimal(16, 4) null comment '价格',
  SOURCE varchar(128) null comment '信息来源',
  REMARK text null comment '备注',
  DATE  date null comment '日期'
) comment '网络价格';

ALTER TABLE DATA_NETWORK ADD REGION varchar(64) NULL COMMENT '地区';
ALTER TABLE FUJIAN_SURVEY ADD REGION varchar(64) NULL COMMENT '地区';

ALTER TABLE FUZHOU_HIGHWAY_BUREAU ADD REGION varchar(64) NULL COMMENT '地区';
ALTER TABLE FUZHOU_TRANSPORTATION_BUREAU ADD REGION varchar(64) NULL COMMENT '地区';

DROP INDEX Idx_key ON FUJIAN_SURVEY;
CREATE UNIQUE INDEX Idx_key ON FUJIAN_SURVEY (NAME, SPEC, DATE, REGION);
DROP INDEX Idx_key ON FUZHOU_HIGHWAY_BUREAU;
CREATE UNIQUE INDEX Idx_key ON FUZHOU_HIGHWAY_BUREAU (NAME, SPEC, DATE, REGION);
DROP INDEX Idx_key ON FUZHOU_TRANSPORTATION_BUREAU;
CREATE UNIQUE INDEX Idx_key ON FUZHOU_TRANSPORTATION_BUREAU (NAME, SPEC, DATE, REGION);

ALTER TABLE BUDGET_ITEM MODIFY UNIT_PRICE decimal(16,4) COMMENT '单价';
ALTER TABLE BUDGET_ITEM MODIFY TOTAL_PRICE decimal(16,4) COMMENT '总价';
ALTER TABLE BUDGET MODIFY AMOUNT decimal(16,4) COMMENT '总数';
ALTER TABLE BUDGET MODIFY MIN_AMOUNT decimal(16,4) COMMENT '最小值';
ALTER TABLE BUDGET MODIFY MAX_AMOUNT decimal(16,4) COMMENT '最大值';

ALTER TABLE PRICE_PUBLISH ADD PRICE_ZHANGZHOUKFQ decimal(16,4) NULL COMMENT '漳州开发区价格';
ALTER TABLE PRICE_PUBLISH
  MODIFY COLUMN PRICE_ZHANGZHOUKFQ decimal(16,4) COMMENT '漳州开发区价格' AFTER PRICE_PINTAN;

ALTER TABLE BUDGET ADD MIN_MONTH varchar(16) NULL COMMENT '最小值月份';
ALTER TABLE BUDGET ADD MAX_MONTH varchar(16) NULL COMMENT '最大值月份';

--
DROP INDEX Idx_key ON SANMING_STEEL;
CREATE UNIQUE INDEX Idx_key ON SANMING_STEEL (NAME, SPEC, DATE);