OXYGENHUB
# c43e4f631d99 oxygenhub / crates / hub / migrations / 0045_org_storage_policy.sql
421 B · SQL · last changed An organisation's storage policy 1 month ago source blame history raw
1
-- An organisation's storage policy (oxygenhub#96): whether every new
2
-- repository must live in a bucket, and the store URL prefixes allowed.
3
CREATE TABLE org_storage_policy (
4
    org_id         INTEGER PRIMARY KEY REFERENCES organisations(id) ON DELETE CASCADE,
5
    require_bucket INTEGER NOT NULL DEFAULT 0,
6
    -- One store URL prefix per line; empty allows any bucket.
7
    allowed        TEXT NOT NULL DEFAULT ''
8
);