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

16 lines
298 B
JavaScript
Raw Normal View History

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