1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

feat: start storing event group type and id (#10233)

Simple 2 columns for event type and event id.

I thought about adding check for type, but decided to handle checking in
backend code.

Currently the types will be

1. transaction
2. change-request

And ID is ulid
This commit is contained in:
Jaanus Sellin 2025-06-30 12:50:51 +03:00 committed by GitHub
parent 8ade5b5dbb
commit 2d2ba4ae25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,15 @@
exports.up = function(db, cb) {
db.runSql(`
ALTER TABLE events
ADD COLUMN IF NOT EXISTS group_type TEXT,
ADD COLUMN IF NOT EXISTS group_id TEXT;
`, cb);
};
exports.down = function(db, cb) {
db.runSql(`
ALTER TABLE events
DROP COLUMN IF EXISTS group_id,
DROP COLUMN IF EXISTS group_type;
`, cb);
};