1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: delete unnecessary column permission_id (#5413)

Follows up on https://github.com/Unleash/unleash/pull/5409 and drops
this column, since it's no longer used.
See: https://github.com/Unleash/unleash/pull/5409#discussion_r1404112310

Should only be merged after ~~`5.7`~~ `5.8` has been released.
This commit is contained in:
Nuno Góis 2024-01-16 10:56:22 +00:00 committed by GitHub
parent dfeaea8ee9
commit aeb9c85f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
);
};