diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index aeacff3928a..3ea63198d53 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -22,6 +22,10 @@ -- Disable foreign key checking SET foreign_key_checks = 0; + +ALTER TABLE volumes ADD COLUMN vm_snapshot_chain_size bigint(20) unsigned; +ALTER TABLE volumes ADD COLUMN iso_id bigint(20) unsigned; + -- All new inserts to the hypervisor_capabilities table should be after this ALTER TABLE `cloud`.`hypervisor_capabilities` ADD CONSTRAINT `uc_hypervisor` UNIQUE (`hypervisor_type`, `hypervisor_version`); @@ -81,6 +85,7 @@ CREATE TABLE `cloud`.`object_datastore_ref` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; + -- CREATE TABLE `cloud`.`data_store_provider` ( -- `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', -- `name` varchar(255) NOT NULL COMMENT 'name of primary data store provider', @@ -2208,8 +2213,6 @@ CREATE TABLE `cloud_usage`.`usage_vmsnapshot` ( INDEX `i_usage_vmsnapshot` (`account_id`,`id`,`vm_id`,`created`) ) ENGINE=InnoDB CHARSET=utf8; -ALTER TABLE volumes ADD COLUMN vm_snapshot_chain_size bigint(20) unsigned; -ALTER TABLE volumes ADD COLUMN iso_id bigint(20) unsigned; INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'kvm.ssh.to.agent', 'true', 'Specify whether or not the management server is allowed to SSH into KVM Agents');