USE [DD_ECM]
GO

/****** Object:  Table [dbo].[TBDD_ZUGFERD_XML_ITEMS]    Script Date: 25.07.2023 10:04:13 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

ALTER TABLE dbo.TBDD_ZUGFERD_XML_ITEMS ADD
	ITEM_TYPE int NULL
GO
ALTER TABLE dbo.TBDD_ZUGFERD_XML_ITEMS ADD CONSTRAINT
	DF_TBDD_ZUGFERD_XML_ITEMS_ITEM_TYP DEFAULT 0 FOR ITEM_TYPE
GO

UPDATE dbo.TBDD_ZUGFERD_XML_ITEMS SET
	ITEM_TYPE = 0;
GO