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