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:
parent
bf1223e07d
commit
573385a630
17
src/migrations/20211209205201-drop-client-metrics.js
Normal file
17
src/migrations/20211209205201-drop-client-metrics.js
Normal 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,
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user