ddl.sql 1015 B

123456789101112131415161718192021222324
  1. -- 项目ddl SQL语句统一放在这里记录,包括表结构、关联关系、索引、函数、存储过程等
  2. -- 每段sql语句必须要按规范注释,注释规范如下:
  3. -- date: 2018-12-11
  4. -- author: suntg
  5. -- content: 内容备注xxx
  6. -- date: 2018-12-12 17:51
  7. -- author: hejq
  8. -- content: 供应商关系表增加字段,需要对账金额,次更新时间,
  9. -- 采用字符串是因为需要分币别统计处理
  10. alter table `purc$vendors`
  11. add column todo_apchek_count VARCHAR(100) default '' comment '需要对账金额',
  12. add column update_time datetime comment '上一次更新时间';
  13. -- date: 2018-12-19 09:51
  14. -- author: huj
  15. -- content: 采购明细单增加替代料号、替代料名称、替代料规格三个字段(帝显LED物料需求)
  16. alter table `purc$orderitems`
  17. add column pd_repprodcode VARCHAR(255) comment '替代料号',
  18. add column pd_repprodtitle VARCHAR(255) comment '替代料名称',
  19. add column pd_repprodspec VARCHAR(255) comment '替代料规格';