From 44f783944a5de09a731d510c260bf0320c060ddb Mon Sep 17 00:00:00 2001 From: Linda Kamau Date: Tue, 11 Feb 2014 14:15:55 +0300 Subject: [PATCH] fixed sql syntax --- sql/upgrade109-110.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/upgrade109-110.sql b/sql/upgrade109-110.sql index 029b04cb37..1db9100136 100644 --- a/sql/upgrade109-110.sql +++ b/sql/upgrade109-110.sql @@ -7,5 +7,5 @@ INSERT INTO `permissions` (`name`) VALUES ('delete_all_reports'); -- Adding permission to superadmin role - @Robbie: will the ORM pick up on the subqueries? INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES ( (SELECT `id` FROM `roles` WHERE `name` = 'superadmin' LIMIT 1), - (SELECT `id` FROM `permissions` WHERE `name` = 'delete_all_reports' LIMIT 1), + (SELECT `id` FROM `permissions` WHERE `name` = 'delete_all_reports' LIMIT 1) );