marcaurele commented on a change in pull request #2379: CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates URL: https://github.com/apache/cloudstack/pull/2379#discussion_r159595094
########## File path: engine/schema/resources/META-INF/db/schema-41000to41100.sql ########## @@ -516,3 +516,109 @@ UPDATE `cloud`.`vm_template` SET guest_os_id=99 WHERE id=8; -- Network External Ids ALTER TABLE `cloud`.`networks` ADD `external_id` varchar(255); + +-- CLOUDSTACK-10146: Bypass Secondary Storage for KVM templates +ALTER TABLE `cloud`.`vm_template` +ADD COLUMN `direct_download` TINYINT(1) DEFAULT '0' COMMENT 'Indicates if Secondary Storage is bypassed and template is downloaded to Primary Storage'; + +DROP VIEW IF EXISTS `cloud`.`template_view`; +CREATE VIEW `template_view` AS Review comment: Better to put those drop & create in a single statement: ```sql CREATE OR REPLACE VIEW `template_view` AS ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services