chore(*.psql/*.sql): update all *.psql to *.sql files
This commit is contained in:
parent
c9015a7f2b
commit
fc37600b8b
63 changed files with 21 additions and 41 deletions
5
queries/triggers/update_days_read.sql
Normal file
5
queries/triggers/update_days_read.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
CREATE TRIGGER trigger_update_days_read
|
||||
AFTER UPDATE OF progress ON books
|
||||
FOR EACH ROW
|
||||
WHEN (OLD.progress IS DISTINCT FROM NEW.progress AND (NEW.read_status = 'started' OR NEW.read_status = 'finished'))
|
||||
EXECUTE FUNCTION update_days_read();
|
Loading…
Add table
Add a link
Reference in a new issue