mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +01:00
fix: add project column if missing
This commit is contained in:
parent
a9602bb11d
commit
05d7758d1a
10
src/migrations/20210428062104-patch-roles.js
Normal file
10
src/migrations/20210428062104-patch-roles.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql('ALTER TABLE roles ADD COLUMN IF NOT EXISTS project text;', cb);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
// We can't just remove roles for users as we don't know if there has been any manual additions.
|
||||||
|
cb();
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user