mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-22 07:24:26 +00:00
fix(eventstore): cleanup org fields on remove (#8946)
# Which Problems Are Solved When an org is removed, the corresponding fields are not deleted. This creates issues, such as recreating a new org with the same verified domain. # How the Problems Are Solved Remove the search fields by the org aggregate, instead of just setting the removed state. # Additional Changes - Cleanup migration script that removed current stale fields. # Additional Context - Closes https://github.com/zitadel/zitadel/issues/8943 - Related to https://github.com/zitadel/zitadel/pull/8790 --------- Co-authored-by: Silvan <[email protected]>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
DELETE FROM eventstore.fields
|
||||
WHERE aggregate_type = 'org'
|
||||
AND aggregate_id NOT IN (
|
||||
SELECT id
|
||||
FROM projections.orgs1
|
||||
);
|
||||
Reference in New Issue
Block a user