mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 08:39:15 +08:00
Refines trigger logic for updates on size and status changes
This commit is contained in:
parent
857d9505fe
commit
eb4aefde24
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ $$ LANGUAGE plpgsql;
|
|||
|
||||
-- +goose StatementBegin
|
||||
CREATE TRIGGER update_folder_size_after_insert_update_delete
|
||||
AFTER INSERT OR UPDATE OR DELETE ON teldrive.files
|
||||
AFTER INSERT OR UPDATE OF size, status OR DELETE ON teldrive.files
|
||||
FOR EACH ROW
|
||||
EXECUTE PROCEDURE teldrive.update_size_function();
|
||||
-- +goose StatementEnd
|
||||
|
|
Loading…
Reference in a new issue