Skip to content

Commit

Permalink
fix: alter migration
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikOseberg authored and ivarconr committed Jan 11, 2022
1 parent 1e46628 commit 26db43b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/migrations/20211202120808-add-custom-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ exports.up = function (db, cb) {
SELECT
(SELECT id as role_id from roles WHERE name = 'Owner' LIMIT 1),
p.id as permission_id,
e.name as environment
null as environment
FROM permissions p
CROSS JOIN environments e
WHERE p.permission IN
('UPDATE_PROJECT',
'DELETE_PROJECT',
Expand All @@ -155,9 +154,8 @@ exports.up = function (db, cb) {
SELECT
(SELECT id as role_id from roles WHERE name = 'Member' LIMIT 1),
p.id as permission_id,
e.name as environment
null as environment
FROM permissions p
CROSS JOIN environments e
WHERE p.permission IN
('CREATE_FEATURE',
'UPDATE_FEATURE',
Expand Down

0 comments on commit 26db43b

Please sign in to comment.