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:
parent
8ade5b5dbb
commit
2d2ba4ae25
@ -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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user