Skip to content

Commit 91a9cce

Browse files
author
Kishan Kavala
committed
CLOUDSTACK-560 : Add default zone column to account table in cloud_usage table in fresh install and upgrade
1 parent 3ced458 commit 91a9cce

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎setup/db/create-schema-premium.sql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ CREATE TABLE `cloud_usage`.`account` (
136136
`removed` datetime COMMENT 'date removed',
137137
`cleanup_needed` tinyint(1) NOT NULL default '0',
138138
`network_domain` varchar(100) COMMENT 'Network domain name of the Vms of the account',
139+
`default_zone_id` bigint unsigned,
139140
CONSTRAINT `uc_account__uuid` UNIQUE (`uuid`),
140141
PRIMARY KEY (`id`)
141142
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

‎setup/db/db/schema-302to40.sql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,3 +477,4 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'manag
477477
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';
478478

479479
UPDATE `cloud`.`user` SET PASSWORD=RAND() WHERE id=1;
480+
ALTER TABLE `cloud_usage`.`account` ADD COLUMN `default_zone_id` bigint unsigned;

0 commit comments

Comments
 (0)