BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTION
GO
ALTER TABLE dbo.ch_fee_management ADD
	ISVOU bit NULL
GO
ALTER TABLE dbo.ch_fee_management ADD CONSTRAINT
	DF_ch_fee_management_ISVOU DEFAULT 0 FOR ISVOU
GO
ALTER TABLE dbo.ch_fee_management SET (LOCK_ESCALATION = TABLE)
GO
COMMIT

update ch_fee_management set ISVOU=0

BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTION
GO
EXECUTE sp_rename N'dbo.ch_fee_management.VOUCHERSNO', N'Tmp_VOUCHERNO', 'COLUMN' 
GO
EXECUTE sp_rename N'dbo.ch_fee_management.Tmp_VOUCHERNO', N'VOUCHERNO', 'COLUMN' 
GO
ALTER TABLE dbo.ch_fee_management SET (LOCK_ESCALATION = TABLE)
GO
COMMIT