Skip to content

Commit

Permalink
fix: Add in very barebones down migration for rbac so that tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre authored and ivarconr committed Jan 11, 2022
1 parent 4e3f7e5 commit 40bdab7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/migrations/20211202120808-add-custom-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,19 @@ exports.up = function (db, cb) {
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE role_user DROP COLUMN project;
ALTER TABLE roles DROP COLUMN updated_at;
ALTER TABLE role_permission
DROP COLUMN
permission_id,
DROP COLUMN
environment;
ALTER TABLE role_permission
ADD COLUMN project TEXT,
ADD COLUMN permission TEXT;
`,
cb,
);
Expand Down

0 comments on commit 40bdab7

Please sign in to comment.