From aeb9c85f1103d2b1006ab0be204470c1d68f19db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 16 Jan 2024 10:56:22 +0000 Subject: [PATCH] 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. --- ...6104456-drop-unused-column-permissionid.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/migrations/20240116104456-drop-unused-column-permissionid.js diff --git a/src/migrations/20240116104456-drop-unused-column-permissionid.js b/src/migrations/20240116104456-drop-unused-column-permissionid.js new file mode 100644 index 0000000000..e40feec36a --- /dev/null +++ b/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 + ); +};