spc-kiosk-pb/Window/PosMain/AlterMST.sql

28 lines
827 B
MySQL
Raw Permalink Normal View History

2019-06-16 05:12:09 +00:00
USE [POSMST]
GO
ALTER DATABASE [POSMST] SET AUTO_CLOSE OFF WITH NO_WAIT
GO
IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'dbo.MST_ITEM') AND name='TAX_AMT_INCLUDE_YN')
BEGIN
ALTER TABLE MST_ITEM ADD TAX_AMT_INCLUDE_YN VARCHAR(1) NULL;
END
GO
--#17143 [<5B><><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD>]<5D>ڵ<EFBFBD> <20>ֹ<EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD> start
IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'dbo.MST_ITEM') AND name='EXE_HPORD')
BEGIN
ALTER TABLE MST_ITEM ADD TAX_AMT_INCLUDE_YN VARCHAR(1) NULL;
ALTER TABLE MST_ITEM ADD EXE_HPORD VARCHAR(1) NULL;
ALTER TABLE MST_KDS_ORD_MSG ADD F_CNT INT NULL;
END
GO
--#17143 [<5B><><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD>]<5D>ڵ<EFBFBD> <20>ֹ<EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD> end
IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'dbo.MST_KDS_ORD_MSG') AND name='F_CNT')
BEGIN
ALTER TABLE MST_KDS_ORD_MSG ADD F_CNT INT NULL;
END
GO