mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-10-10 07:16:07 +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
|
-- +goose StatementBegin
|
||||||
CREATE TRIGGER update_folder_size_after_insert_update_delete
|
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
|
FOR EACH ROW
|
||||||
EXECUTE PROCEDURE teldrive.update_size_function();
|
EXECUTE PROCEDURE teldrive.update_size_function();
|
||||||
-- +goose StatementEnd
|
-- +goose StatementEnd
|
||||||
|
|
Loading…
Add table
Reference in a new issue