diff --git a/src/migrations/20211209205201-drop-client-metrics.js b/src/migrations/20211209205201-drop-client-metrics.js new file mode 100644 index 0000000000..1ff324d6eb --- /dev/null +++ b/src/migrations/20211209205201-drop-client-metrics.js @@ -0,0 +1,17 @@ +'use strict'; + +exports.up = function (db, callback) { + db.runSql('DROP TABLE client_metrics;', callback); +}; + +exports.down = function (db, callback) { + db.runSql( + ` +CREATE TABLE client_metrics ( + id serial primary key, + created_at timestamp default now(), + metrics json +);`, + callback, + ); +};