IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'recibo') AND COL_LENGTH('[dbo].[recibo]', 'tipopagamento') IS NOT NULL AND COL_LENGTH('[dbo].[recibo]', 'IdTipoRecibo') IS NULL
BEGIN
 ALTER TABLE [dbo].[recibo] ADD IdTipoRecibo INTEGER;
END