Hotfix/fix legacy user eventtypes (#3116)

* includedDates would always disable excludedDates due to empty array

* Added migration to add all userids into _user_eventtype

Co-authored-by: Omar López <zomars@me.com>
pull/3120/head
Alex van Andel 2022-06-20 21:21:17 +01:00 committed by GitHub
parent 591309f335
commit 1b81e6d8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
INSERT INTO _user_eventtype ("A", "B")
SELECT id, "userId" from "EventType"
LEFT JOIN _user_eventtype on ("A" = "EventType".id)
WHERE "A" IS NULL and "userId" IS NOT NULL;