Skip to content

Commit 6af2321

Browse files
committed
Replace ALTER view for DROP and CREATE view
1 parent 70dc94b commit 6af2321

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/schema/src/main/resources/META-INF/db/schema-41400to41500.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hype
309309
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) SELECT UUID(),'Xenserver', '8.1.0', guest_os_name, guest_os_id, utc_timestamp(), 0 FROM `cloud`.`guest_os_hypervisor` WHERE hypervisor_type='Xenserver' AND hypervisor_version='8.0.0';
310310

311311
-- Add mincpu, maxcpu, minmemory and maxmemory to the view supporting constrained offerings
312-
ALTER VIEW `cloud`.`service_offering_view` AS
312+
DROP VIEW IF EXISTS `cloud`.`service_offering_view`;
313+
CREATE VIEW `cloud`.`service_offering_view` AS
313314
SELECT
314315
`service_offering`.`id` AS `id`,
315316
`disk_offering`.`uuid` AS `uuid`,

0 commit comments

Comments
 (0)