1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/migrations/20210218090213-generate-server-identifier.js

20 lines
356 B
JavaScript
Raw Normal View History

'use strict';
exports.up = function(db, cb) {
db.runSql(
`
INSERT INTO settings(name, content) VALUES ('instanceInfo', json_build_object('id', gen_random_uuid()));
`,
cb,
);
};
exports.down = function(db, cb) {
db.runSql(
`
DROP FROM settings WHERE name = 'instanceInfo'
`,
cb,
);
};