| 1 | -- Actions from GitHub, kept on g1t (src/registry.rs): the commit each |
| 2 | -- ref last named, and the archives of commits jobs have used, in R2. |
| 3 | -- Repositories are lowercased, as GitHub reads them. |
| 4 | CREATE TABLE IF NOT EXISTS action_refs ( |
| 5 | repository TEXT NOT NULL, |
| 6 | ref TEXT NOT NULL, |
| 7 | sha TEXT NOT NULL, |
| 8 | resolved_at TEXT NOT NULL, |
| 9 | PRIMARY KEY (repository, ref) |
| 10 | ); |
| 11 | |
| 12 | CREATE TABLE IF NOT EXISTS action_archives ( |
| 13 | repository TEXT NOT NULL, |
| 14 | sha TEXT NOT NULL, |
| 15 | object TEXT NOT NULL, |
| 16 | size INTEGER NOT NULL, |
| 17 | stored_at TEXT NOT NULL, |
| 18 | used_at TEXT NOT NULL, |
| 19 | PRIMARY KEY (repository, sha) |
| 20 | ); |
| 21 | |
| 22 | CREATE INDEX IF NOT EXISTS action_archives_used ON action_archives (used_at); |