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
Fredrik Strand Oseberg 897e97330a
Feat/project stats members (#3009)
This PR adds project members to the project stats and connects the stats
to the UI.
2023-01-27 13:13:41 +01:00

20 lines
408 B
JavaScript

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,
);
};