-- Dt_StockInfo 表新增 MesUploadStatus 字段
IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('[dbo].[Dt_StockInfo]') AND name = 'MesUploadStatus')
BEGIN
    ALTER TABLE [dbo].[Dt_StockInfo] ADD [MesUploadStatus] TINYINT NOT NULL DEFAULT 0;
END
GO