Skip to content

Commit c19d8b4

Browse files
committed
CLOUDSTACK-9298: Remove user definer from view creations
1 parent 9857f41 commit c19d8b4

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

setup/db/db/schema-481to490.sql

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ ALTER TABLE `event` ADD INDEX `state` (`state`);
2424

2525
DROP VIEW IF EXISTS `cloud`.`template_view`;
2626
CREATE
27-
ALGORITHM = UNDEFINED
28-
DEFINER = `cloud`@`%`
29-
SQL SECURITY DEFINER
3027
VIEW `template_view` AS
3128
SELECT
3229
`vm_template`.`id` AS `id`,
@@ -128,9 +125,6 @@ VIEW `template_view` AS
128125

129126
DROP VIEW IF EXISTS `cloud`.`volume_view`;
130127
CREATE
131-
ALGORITHM = UNDEFINED
132-
DEFINER = `cloud`@`%`
133-
SQL SECURITY DEFINER
134128
VIEW `volume_view` AS
135129
SELECT
136130
`volumes`.`id` AS `id`,
@@ -239,12 +233,8 @@ VIEW `volume_view` AS
239233
AND (`async_job`.`instance_type` = 'Volume')
240234
AND (`async_job`.`job_status` = 0))));
241235

242-
DROP VIEW IF EXISTS `cloud`.`user_vm__view`;
243-
236+
DROP VIEW IF EXISTS `cloud`.`user_vm_view`;
244237
CREATE
245-
ALGORITHM = UNDEFINED
246-
DEFINER = `cloud`@`%`
247-
SQL SECURITY DEFINER
248238
VIEW `user_vm_view` AS
249239
SELECT
250240
`vm_instance`.`id` AS `id`,

0 commit comments

Comments
 (0)