mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
cdfba8f7b1
When an application updates metrics for a toggle we now stores the timestamp on the toggle when it was last seen used by an application. This will make it much easier to detect toggles not in use anymore. closes #642
11 lines
256 B
JavaScript
11 lines
256 B
JavaScript
exports.up = function(db, callback) {
|
|
db.runSql(
|
|
'ALTER TABLE features ADD "last_seen_at" TIMESTAMP WITH TIME ZONE;',
|
|
callback,
|
|
);
|
|
};
|
|
|
|
exports.down = function(db, cb) {
|
|
return db.removeColumn('features', 'last_seen_at', cb);
|
|
};
|