1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/migrations/20230316092547-remove-project-stats-column.js

20 lines
392 B
JavaScript
Raw Normal View History

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