START TRANSACTION;

CREATE TYPE
    resource_model_mapping_rounding AS ENUM ('CEILING', 'DOWN', 'FLOOR', 'HALF_DOWN', 'HALF_EVEN', 'HALF_UP', 'UP');

ALTER TABLE resources_model_mapping
    ADD COLUMN IF NOT EXISTS rounding resource_model_mapping_rounding NOT NULL DEFAULT 'HALF_UP';

COMMIT;
