pr_01m47d24b0e6n91zwymwxg0vpx/services/repos/migrations/0006_stored_bytes.sql

6 lines428 bytesCodeBlame
1-- What a repository holds, as far as g1t can measure it: the bytes of every
2-- pack pushed through g1t's git endpoints to it or to its pull requests'
3-- working copies. The git store does not report sizes, and pushes from
4-- agents' sandboxes go to it directly, so this is a lower bound. Billing
5-- reads it daily (`storage`) for its private storage meter.
6ALTER TABLE repos ADD COLUMN stored_bytes INTEGER NOT NULL DEFAULT 0;