mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:07:31 +00:00
chore: move the go code into a subfolder
This commit is contained in:
13
apps/api/internal/migration/delete_parent_counts_trigger.sql
Normal file
13
apps/api/internal/migration/delete_parent_counts_trigger.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ 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 -}}
|
Reference in New Issue
Block a user