Skip to content

Commit e397d03

Browse files
James Stone TIL sync botjamesmstone
James Stone TIL sync bot
authored andcommitted
Wed 05 Mar 2025 13:11:41 CET
1 parent 73a1817 commit e397d03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

postgres/ddl-macros.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ This will modify the specified table by adding the `created_user` and `created_a
4242
## Modified
4343

4444

45-
To add similar columns for tracking modifications, you can create a new macro called `add_modified_columns`. Here's an
46-
example:
45+
To add similar columns for tracking modifications, you can create a new macro called `add_modified_columns`. Here's an example:
46+
47+
**Note:** this also adds a trigger to keep the modified at up to date.
4748

4849
```postgresql
4950
create or replace function update_modified_at()

0 commit comments

Comments
 (0)