IF((SELECT COUNT(*) FROM dbo.publ_PurchaseOrderStatuses WHERE name = 'Canceled') = 0)
BEGIN
	INSERT INTO [dbo].publ_PurchaseOrderStatuses ([name]) VALUES ('Canceled')
END

IF((SELECT COUNT(*) FROM dbo.publ_PurchaseOrderDocumentTypeStatus WHERE DocumentTypeId = 2) = 0)
BEGIN
	INSERT INTO [dbo].[publ_PurchaseOrderDocumentTypeStatus]
			   ([DocumentTypeId]
			   ,[PurchaseOrderStatusId])
		 VALUES
	(2, 4),
	(2, 8)
END

