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:
1 parent
592f44eb32
commit
6b00167657
1 file changed
+6
+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