1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: drop client_metrics table

This commit is contained in:
Ivar Conradi Østhus 2021-12-09 21:54:32 +01:00
parent bf1223e07d
commit 573385a630

View File

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