UPDATE TBDD_MODULES SET DB_VERSION = '1.5.2.0' WHERE SHORT_NAME = 'SIG_ENV_CR'
GO


ALTER TABLE [dbo].[TBSIG_CONFIG] DROP CONSTRAINT [DF__TBSIG_CON__DOCUM__0020D2BF]
GO
ALTER TABLE [dbo].[TBSIG_CONFIG] DROP CONSTRAINT [DF__TBSIG_CON__EXPOR__0114F6F8]
GO
ALTER TABLE [dbo].[TBSIG_CONFIG] DROP CONSTRAINT [DF__TBSIG_CON__DOCUM__02FD3F6A]
GO
ALTER TABLE [dbo].[TBSIG_CONFIG] DROP CONSTRAINT [DF__TBSIG_CON__FINIS__0A9E6132]
GO
ALTER TABLE [dbo].[TBSIG_CONFIG] DROP CONSTRAINT [DF__TBSIG_CON__EML_P__0B92856B]
GO

ALTER TABLE TBSIG_CONFIG
        DROP COLUMN DOCUMENT_PATH_DMZ;
GO
ALTER TABLE TBSIG_CONFIG
        DROP COLUMN EXPORT_PATH_DMZ;
GO
ALTER TABLE TBSIG_CONFIG
        DROP COLUMN DOCUMENT_PATH_MOVE_AFTSEND;
GO
ALTER TABLE TBSIG_CONFIG
        DROP COLUMN FINISHED_PATH_EX_DMZ;
GO
ALTER TABLE TBSIG_CONFIG
        DROP COLUMN EML_PATH_EX_DMZ;
GO
ALTER TABLE [dbo].[TBSIG_ENVELOPE] DROP CONSTRAINT [DF_TBSIG_ENVELOPE_DMZ_MOVED]
GO
ALTER TABLE TBSIG_ENVELOPE
        DROP COLUMN DMZ_MOVED;
GO
ALTER VIEW [dbo].[VWSIG_CONFIG_DOC_PATH] AS
SELECT 
	DOCUMENT_PATH
FROM [dbo].[TBSIG_CONFIG]
GO