chore: initial commit
This commit is contained in:
11
internal/db/schema/func.sql
Normal file
11
internal/db/schema/func.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE
|
||||
OR REPLACE FUNCTION update_updated_at_column()
|
||||
RETURNS TRIGGER AS
|
||||
$$
|
||||
BEGIN
|
||||
NEW.updated_at
|
||||
:= NOW();
|
||||
RETURN NEW;
|
||||
END;
|
||||
$$
|
||||
language 'plpgsql';
|
||||
Reference in New Issue
Block a user