Add project-user association normalization script to 4.20.1 upgrade (#10116)

This commit is contained in:
Fabricio Duarte 2025-01-16 12:18:30 -03:00 committed by GitHub
parent bf1ff10a90
commit 2300c1caa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -18,3 +18,6 @@
--;
-- Schema upgrade cleanup from 4.20.0.0 to 4.20.1.0
--;
-- Delete `project_account` entries for users that were removed
DELETE FROM `cloud`.`project_account` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`);