diff options
| author | rtkay123 <dev@kanjala.com> | 2026-03-29 15:06:30 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-03-29 15:06:30 +0200 |
| commit | 7e08464b2a42048ebb5128bec5731719cf8bd1db (patch) | |
| tree | a3b2da94cfcd6ceff480e30a37692b48ca85144f /migrations/20260329120607_functions.sql | |
| parent | a32f67624b14d5bf3ff726f2dbab09652ae34974 (diff) | |
| download | warden-7e08464b2a42048ebb5128bec5731719cf8bd1db.tar.bz2 warden-7e08464b2a42048ebb5128bec5731719cf8bd1db.zip | |
feat: create transaction schema
Diffstat (limited to 'migrations/20260329120607_functions.sql')
| -rw-r--r-- | migrations/20260329120607_functions.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/20260329120607_functions.sql b/migrations/20260329120607_functions.sql new file mode 100644 index 0000000..f662c25 --- /dev/null +++ b/migrations/20260329120607_functions.sql @@ -0,0 +1,7 @@ +create or replace function update_updated_at_column() +returns trigger as $$ +begin + new.updated_at = now(); + return new; +end; +$$ language 'plpgsql'; |
