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

IF  NOT EXISTS(SELECT *
	FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'TBSIG_ENVELOPE_RECEIVER'
AND COLUMN_NAME = 'PARENT_ENVELOPE_RECEIVER_ID ')
	BEGIN
		PRINT 'SPALTE PARENT_ENVELOPE_RECEIVER_ID  EXISTIERT NICHT IN TBSIG_ENVELOPE_RECEIVER'
		ALTER TABLE [dbo].TBSIG_ENVELOPE_RECEIVER ADD PARENT_ENVELOPE_RECEIVER_ID INTEGER NOT NULL DEFAULT 0;
	END
GO