OXYGENHUB
◆ v0.9.5 oxygenhub / crates / hub / migrations-pg / 0087_drops.sql
554 B · SQL · last changed Drops: per-user gists, each a small hidden Oxygen repository (#279) 15 days ago source blame history raw
1
-- Drops (oxygenhub#279): a drop is a small repository of its own, named
2
-- `drops/ID` under its owner, that no repository list shows; `kind` tells
3
-- it from a repository and `title` is its name on the Drops page (the
4
-- description column holds its description). A secret drop is private to
5
-- every list and readable by anyone with its address.
6
ALTER TABLE repositories ADD COLUMN kind TEXT NOT NULL DEFAULT 'repo';
7
ALTER TABLE repositories ADD COLUMN title TEXT NOT NULL DEFAULT '';
8
CREATE INDEX repositories_kind_owner ON repositories(kind, owner);