IF NOT EXISTS
(
    SELECT COLUMN_NAME
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'IHIOPrescriptionDetail'
          AND COLUMN_NAME = 'ExchangeAmount'
)
    ALTER TABLE dbo.IHIOPrescriptionDetail
    ADD ExchangeAmount MONEY NULL
            DEFAULT (0);


IF EXISTS(SELECT 1 FROM sys.procedures WHERE name = 'AddIHIOPrescription')
    DROP PROCEDURE [dbo].[AddIHIOPrescription];

IF EXISTS(SELECT 1 FROM sys.procedures WHERE name = 'AddTaminPrescription')
    DROP PROCEDURE [dbo].[AddTaminPrescription];