From 2c5f70d4203a1a777981d616d1d3605ad282cb7a Mon Sep 17 00:00:00 2001 From: olav Date: Mon, 13 Jun 2022 09:08:46 +0200 Subject: [PATCH] refactor: drop permissions table on down migration (#1699) --- src/migrations/20211202120808-add-custom-roles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/migrations/20211202120808-add-custom-roles.js b/src/migrations/20211202120808-add-custom-roles.js index 2da5387350..961e255f6c 100644 --- a/src/migrations/20211202120808-add-custom-roles.js +++ b/src/migrations/20211202120808-add-custom-roles.js @@ -199,6 +199,8 @@ exports.down = function (db, cb) { ALTER TABLE role_permission ADD COLUMN project TEXT, ADD COLUMN permission TEXT; + + DROP TABLE permissions; `, cb, );