zitadel/cmd/setup/39.sql

9 lines
192 B
MySQL
Raw Normal View History

DELETE FROM eventstore.fields
WHERE aggregate_type = 'org'
AND aggregate_id IN (
SELECT aggregate_id
FROM eventstore.events2
WHERE aggregate_type = 'org'
AND event_type = 'org.removed'
);