1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

fix: add migration

This commit is contained in:
Fredrik Oseberg 2021-08-09 14:41:20 +02:00
parent 0ffa01502f
commit 4b05172654

View File

@ -0,0 +1,21 @@
exports.up = function(db, cb) {
db.runSql(
`
ALTER TABLE projects ADD COLUMN health integer DEFAULT 100;
`,
cb,
);
};
exports.down = function(db, cb) {
db.runSql(
`
ALTER TABLE projects DROP COLUMN health;
`,
cb,
);
};
exports._meta = {
version: 1,
};