1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00
unleash.unleash/src/migrations/20220224111626-add-current-time-context-field.js

20 lines
395 B
JavaScript
Raw Normal View History

'use strict';
exports.up = function (db, cb) {
db.runSql(
`
INSERT INTO context_fields(name, description, sort_order) VALUES('currentTime', 'Allows you to constrain on date values', 3);
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
DELETE FROM context_fields WHERE name = 'currentTime';
`,
cb,
);
};