1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/migrations/20161027134128-create-metrics.js

18 lines
317 B
JavaScript
Raw Normal View History

2016-10-27 16:55:38 +02:00
'use strict';
exports.up = function(db, callback) {
db.runSql(
`
2016-12-10 11:35:13 +01:00
CREATE TABLE client_metrics (
id serial primary key,
created_at timestamp default now(),
metrics json
);`,
callback
);
2016-12-10 11:35:13 +01:00
};
exports.down = function(db, callback) {
2016-12-10 11:35:13 +01:00
db.runSql('DROP TABLE client_metrics;', callback);
};