-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) (cherry picked from commit 5483d12)
- Loading branch information
1 parent
b086b84
commit 3c5b281
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
6 changes: 6 additions & 0 deletions
6
...migrations/20231006105547_update-modified-at-for-certain-columns-on-users-table.tx.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DROP TRIGGER IF EXISTS autoupdate_users_modified_at ON users; | ||
|
||
CREATE TRIGGER autoupdate_users_modified_at | ||
BEFORE INSERT OR UPDATE OF password_hash, admin, active, display_name, remote ON public.users | ||
FOR EACH ROW | ||
EXECUTE PROCEDURE public.set_modified_time(); |