1
0
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:
Ivar Conradi Østhus 2022-02-22 14:33:20 +01:00
parent a9602bb11d
commit 05d7758d1a
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View 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();
};