OXYGENHUB
# 6907a989e82a oxygenhub / crates / hub / migrations / 0044_repo_storage.sql
457 B · SQL · last changed A repository can live in its owner's bucket 1 month ago source blame history raw
1
-- Repositories kept in their owner's bucket (oxygenhub#96, oxygen#68):
2
-- the store's URL, the credentials sealed under keys/secrets.key, and the
3
-- last check of the store.
4
CREATE TABLE repo_storage (
5
    repo_id      INTEGER PRIMARY KEY REFERENCES repositories(id) ON DELETE CASCADE,
6
    url          TEXT NOT NULL,
7
    credentials  BLOB NOT NULL,
8
    created_ms   INTEGER NOT NULL,
9
    checked_ms   INTEGER,
10
    check_result TEXT NOT NULL DEFAULT ''
11
);