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:
+6
@@ -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";
|
||||
Reference in New Issue
Block a user