From 9955171268c77144ebc3390fcae65f57cd45e6b7 Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Fri, 17 Jul 2015 10:17:09 +0530 Subject: [PATCH] CLOUDSTACK-8592: increase precision --- setup/db/db/schema-451to452.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/db/db/schema-451to452.sql b/setup/db/db/schema-451to452.sql index cdc8d394c5e..c988bb385b8 100644 --- a/setup/db/db/schema-451to452.sql +++ b/setup/db/db/schema-451to452.sql @@ -96,7 +96,7 @@ CREATE TABLE IF NOT EXISTS `cloud_usage`.`quota_usage` ( `account_id` bigint(20) unsigned NOT NULL, `domain_id` bigint(20) unsigned NOT NULL, `usage_type` varchar(64) DEFAULT NULL, - `quota_used` decimal(15,4) unsigned NOT NULL, + `quota_used` decimal(15,8) unsigned NOT NULL, `start_date` datetime NOT NULL COMMENT 'start time for this usage item', `end_date` datetime NOT NULL COMMENT 'end time for this usage item', PRIMARY KEY (`id`) @@ -107,7 +107,7 @@ CREATE TABLE IF NOT EXISTS `cloud_usage`.`quota_balance` ( `id` bigint unsigned NOT NULL auto_increment COMMENT 'id', `account_id` bigint unsigned NOT NULL, `domain_id` bigint(20) unsigned NOT NULL, - `credit_balance` decimal(15,2) COMMENT 'amount of credits remaining', + `credit_balance` decimal(15,8) COMMENT 'amount of credits remaining', `credits_id` bigint unsigned COMMENT 'if not null then this entry corresponds to credit change quota_credits', `updated_on` datetime NOT NULL COMMENT 'date updated on', `previous_update_id` bigint unsigned NOT NULL COMMENT 'id of last update',