ALTER TABLE [dbo].[T_TEMPLATE_FIELD_VALUE] ALTER COLUMN [Name] varchar(255) NULL
GO

ALTER TABLE [dbo].[T_TEMPLATE_FIELD_VALUE] ALTER COLUMN [TemplateString] varchar(7000) NULL
GO



ALTER TABLE [dbo].[T_TEMPLATE_FIELD_VALUE] ADD [TextValueType] int
GO
UPDATE [dbo].[T_TEMPLATE_FIELD_VALUE] SET [TextValueType]=0
GO
ALTER TABLE [dbo].[T_TEMPLATE_FIELD_VALUE] ALTER COLUMN [TextValueType] int NOT NULL
GO