/*==============================================================*/
/* Upgrade struktury z wersji 50 do 51                          */
/*==============================================================*/

ALTER TABLE Receipt ADD COLUMN CustomerId2Type int null 
GO
ALTER TABLE Receipt ADD COLUMN CustomerId2 text(20) null
GO

UPDATE Receipt SET CustomerId2Type = 0
GO
UPDATE Receipt SET CustomerId2 = ''
GO

UPDATE StructureVersion SET Version = 51
GO
