Skip to content

Commit

Permalink
chore: delete unnecessary column permission_id (#5413)
Browse files Browse the repository at this point in the history
Follows up on #5409 and drops
this column, since it's no longer used.
See: #5409 (comment)

Should only be merged after ~~`5.7`~~ `5.8` has been released.
  • Loading branch information
nunogois committed Jan 16, 2024
1 parent dfeaea8 commit aeb9c85
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/migrations/20240116104456-drop-unused-column-permissionid.js
@@ -0,0 +1,19 @@
exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE role_permission
DROP COLUMN permission_id;
`,
cb
);
};

exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE role_permission
ADD COLUMN permission_id INTEGER;
`,
cb
);
};

0 comments on commit aeb9c85

Please sign in to comment.