1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/src/migrations/20240418140646-add-ip-column-to-events-table.js
Christopher Kolstad cf2bd28ff6
feat: use audit info in events (#6872)
I've tried to use/add the audit info to all events I could see/find.
This makes this PR necessarily huge, because we do store quite a few
events. 

I realise it might not be complete yet, but tests
run green, and I think we now have a pattern to follow for other events.
2024-04-18 16:32:35 +02:00

8 lines
191 B
JavaScript

exports.up = function (db, cb) {
db.runSql(`ALTER TABLE events ADD COLUMN ip TEXT`, cb);
};
exports.down = function (db, cb) {
db.runSql(`ALTER TABLE events DROP COLUMN ip`, cb);
};