mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:17:32 +00:00
14 lines
328 B
SQL
14 lines
328 B
SQL
{{ define "delete_parent_counts_trigger" -}}
|
|
|
|
CREATE OR REPLACE TRIGGER delete_parent_counts_trigger
|
|
AFTER DELETE
|
|
ON {{ .Table }}
|
|
FOR EACH ROW
|
|
EXECUTE FUNCTION projections.delete_parent_counts(
|
|
'{{ .ParentType }}',
|
|
'{{ .InstanceIDColumn }}',
|
|
'{{ .ParentIDColumn }}'
|
|
);
|
|
|
|
{{- end -}}
|