mirror of https://github.com/apache/cloudstack.git
2.2.4 to 2.2.5 upgrade sql for system vm pooling
This commit is contained in:
parent
5bf6df3d6c
commit
6143737ef6
|
|
@ -1492,6 +1492,8 @@ CREATE TABLE `cloud`.`cmd_exec_log` (
|
|||
`weight` integer NOT NULL DEFAULT 1 COMMENT 'command weight in consideration of the load factor added to host that is executing the command',
|
||||
`created` datetime NOT NULL COMMENT 'date created',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `i_cmd_exec_log__host_id`(`host_id`),
|
||||
INDEX `i_cmd_exec_log__instance_id`(`instance_id`),
|
||||
CONSTRAINT `fk_cmd_exec_log_ref__inst_id` FOREIGN KEY (`instance_id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,21 @@
|
|||
--;
|
||||
-- Schema upgrade from 2.2.4 to 2.2.5;
|
||||
--;
|
||||
|
||||
CREATE TABLE `cloud`.`cmd_exec_log` (
|
||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`host_id` bigint unsigned NOT NULL COMMENT 'host id of the system VM agent that command is sent to',
|
||||
`instance_id` bigint unsigned NOT NULL COMMENT 'instance id of the system VM that command is executed on',
|
||||
`command_name` varchar(255) NOT NULL COMMENT 'command name',
|
||||
`weight` integer NOT NULL DEFAULT 1 COMMENT 'command weight in consideration of the load factor added to host that is executing the command',
|
||||
`created` datetime NOT NULL COMMENT 'date created',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `i_cmd_exec_log__host_id`(`host_id`),
|
||||
INDEX `i_cmd_exec_log__instance_id`(`instance_id`),
|
||||
CONSTRAINT `fk_cmd_exec_log_ref__inst_id` FOREIGN KEY (`instance_id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `cloud`.`secondary_storage_vm` ADD COLUMN `role` varchar(64) NOT NULL DEFAULT 'templateProcessor';
|
||||
|
||||
INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description) VALUES ('Network', 'DEFAULT', 'management-server', 'vm.network.throttling.rate', 200, 'Default data transfer rate in megabits per second allowed in user vm\'s default network.');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue