1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20230127111638-new-project-stats-field.js

20 lines
408 B
JavaScript
Raw Normal View History

exports.up = function (db, cb) {
db.runSql(
`
ALTER table project_stats
ADD COLUMN IF NOT EXISTS project_members_added_current_window INTEGER DEFAULT 0
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER table project_stats
DROP COLUMN project_members_added_current_window
`,
cb,
);
};