OXYGENHUB
◆ main oxygenhub / crates / hub / migrations / 0009_forks.sql
259 B · SQL · last changed Forks 1 month ago source blame history raw
1
-- Forks (hub spec §4): the repository a fork was made from.
2
ALTER TABLE repositories ADD COLUMN forked_from INTEGER REFERENCES repositories(id) ON DELETE SET NULL;
3
CREATE INDEX repositories_forks ON repositories (forked_from) WHERE forked_from IS NOT NULL;