use billing;

ALTER TABLE `contract_balances` ADD COLUMN `underrun_profiles` DATETIME DEFAULT NULL AFTER `invoice_id`;
ALTER TABLE `contract_balances` ADD COLUMN `underrun_lock` DATETIME DEFAULT NULL AFTER `underrun_profiles`;

ALTER TABLE profile_packages CHANGE balance_interval_unit balance_interval_unit ENUM('hour','day','week','month') NOT NULL DEFAULT 'month';
ALTER TABLE profile_packages CHANGE timely_duration_unit timely_duration_unit ENUM('hour','day','week','month') DEFAULT NULL;