Skip to content

Commit 3ef5e7a

Browse files
committed
Add project-user association normalization script to 4.20.1 upgrade
1 parent 54bc150 commit 3ef5e7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/schema/src/main/resources/META-INF/db/schema-42000to42010-cleanup.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
--;
1919
-- Schema upgrade cleanup from 4.20.0.0 to 4.20.1.0
2020
--;
21+
22+
-- Delete `project_account` entries for users that were removed
23+
DELETE FROM `cloud`.`project_account` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`);

0 commit comments

Comments
 (0)