zitadel/migrations/cockroach/V1.97__delete_apps.sql

7 lines
187 B
MySQL
Raw Normal View History

DELETE FROM zitadel.projections.apps
WHERE project_id IN (
SELECT aggregate_id
FROM eventstore.events
WHERE aggregate_type = 'project' AND event_type = 'project.removed'
);