mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
20 lines
356 B
JavaScript
20 lines
356 B
JavaScript
|
'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,
|
||
|
);
|
||
|
};
|