Create table for tracking changes across tables and operations

This commit is contained in:
thiloho
2024-09-11 12:14:10 +02:00
parent c0288d2980
commit b7174530e8
5 changed files with 140 additions and 29 deletions

View File

@@ -44,6 +44,11 @@ CREATE TRIGGER update_article_last_modified
FOR EACH ROW
EXECUTE FUNCTION internal.update_last_modified ();
CREATE TRIGGER update_docs_category_modified
BEFORE INSERT OR UPDATE OR DELETE ON internal.docs_category
FOR EACH ROW
EXECUTE FUNCTION internal.update_last_modified ();
CREATE TRIGGER update_footer_last_modified
BEFORE UPDATE ON internal.footer
FOR EACH ROW
@@ -70,6 +75,8 @@ DROP TRIGGER update_home_last_modified ON internal.home;
DROP TRIGGER update_article_last_modified ON internal.article;
DROP TRIGGER update_docs_category_modified ON internal.docs_category;
DROP TRIGGER update_footer_last_modified ON internal.footer;
DROP TRIGGER update_legal_information_last_modified ON internal.legal_information;