费用提交
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
-- 前置:已完成 Lastleg 现有整车排车结构升级;如部署为缺少每日流水表的旧库,也创建正式排车流水表。
|
||||
USE baiyue_lastleg;
|
||||
|
||||
-- 排车保存会同步异常快照;旧库必须先补齐该正式字段。
|
||||
SET @dispatch_exception_ddl = IF(
|
||||
EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'll_dispatch_order' AND column_name = 'exceptions_json'),
|
||||
'SELECT 1',
|
||||
'ALTER TABLE ll_dispatch_order ADD COLUMN exceptions_json JSON NULL COMMENT ''派送异常登记记录及图片引用,不改变派送及库存状态'' AFTER review_basis_hash'
|
||||
);
|
||||
PREPARE dispatch_exception_stmt FROM @dispatch_exception_ddl;
|
||||
EXECUTE dispatch_exception_stmt;
|
||||
DEALLOCATE PREPARE dispatch_exception_stmt;
|
||||
|
||||
SET @dispatch_transport_column_ddl = IF(
|
||||
EXISTS (
|
||||
SELECT 1 FROM information_schema.columns
|
||||
|
||||
Reference in New Issue
Block a user