MT#14255 add balance underrun detection timestamp cols

+add "hour" balance interval enum value

Change-Id: Ic52ebf4af8744bf2d1f732a7aa689730e0300db5
changes/35/2535/3
Rene Krenn 11 years ago
parent 70e828a4c4
commit 584b376584

@ -0,0 +1,7 @@
use billing;
ALTER TABLE `contract_balances` DROP COLUMN `underrun_profiles`;
ALTER TABLE `contract_balances` DROP COLUMN `underrun_lock`;
ALTER TABLE profile_packages CHANGE balance_interval_unit balance_interval_unit ENUM('day','week','month') NOT NULL DEFAULT 'month';
ALTER TABLE profile_packages CHANGE timely_duration_unit timely_duration_unit ENUM('day','week','month') DEFAULT NULL;

@ -0,0 +1,7 @@
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;
Loading…
Cancel
Save