CLOUDSTACK-560 : Add default zone column to account table in cloud_usage table in fresh install and upgrade

This commit is contained in:
Kishan Kavala 2012-12-10 19:37:57 +05:30
parent 5405242674
commit 199806c1be
2 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ CREATE TABLE `cloud_usage`.`account` (
`removed` datetime COMMENT 'date removed',
`cleanup_needed` tinyint(1) NOT NULL default '0',
`network_domain` varchar(100) COMMENT 'Network domain name of the Vms of the account',
`default_zone_id` bigint unsigned,
CONSTRAINT `uc_account__uuid` UNIQUE (`uuid`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -477,3 +477,4 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'manag
UPDATE `cloud`.`configuration` set description ='Uuid of the service offering used by console proxy; if NULL - system offering will be used' where name ='consoleproxy.service.offering';
UPDATE `cloud`.`user` SET PASSWORD=RAND() WHERE id=1;
ALTER TABLE `cloud_usage`.`account` ADD COLUMN `default_zone_id` bigint unsigned;