START TRANSACTION;

ALTER TABLE base_resource_limit DROP CONSTRAINT IF EXISTS base_resource_limit_campaign_id_big_order_id_base_resource__key;
ALTER TABLE base_resource_limit DROP COLUMN IF EXISTS big_order_id;
ALTER TABLE base_resource_limit ADD CONSTRAINT base_resource_limit_campaign_base_resource_service_unique UNIQUE (campaign_id, base_resource_id, service_id);

COMMIT;
