1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/migrations/20201216140726-add-last-seen-to-features.js

11 lines
256 B
JavaScript
Raw Normal View History

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