Refines trigger logic for updates on size and status changes

This commit is contained in:
José Avila 2023-08-20 12:52:21 -05:00
parent 857d9505fe
commit eb4aefde24

View file

@ -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