Skip to content

Commit

Permalink
fixed sql syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaulynder committed Feb 11, 2014
1 parent d90dbcf commit 44f7839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/upgrade109-110.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

0 comments on commit 44f7839

Please sign in to comment.