chore: Migration to backfill EventType.userId with B, if null (#20562)

* chore: Migration to backfill EventType.userId with _user_eventtype.B, if empty

* Add newline
This commit is contained in:
Alex van Andel
2025-04-05 01:14:15 +01:00
committed by GitHub
parent 592f44eb32
commit 6b00167657
@@ -0,0 +1,6 @@
UPDATE "EventType"
SET "userId" = "_user_eventtype"."B"
FROM "_user_eventtype"
WHERE "EventType"."userId" IS NULL
AND "EventType"."teamId" IS NULL
AND "EventType".id = "_user_eventtype"."A";