Initialize repo and update tracked refs

This commit is contained in:
Joscha 2023-08-05 02:47:43 +02:00
parent 5871b19f8e
commit 5dbd8e886b
7 changed files with 141 additions and 4 deletions

View file

@ -11,7 +11,7 @@ CREATE TABLE commit_links (
FOREIGN KEY (child) REFERENCES commits (hash) ON DELETE CASCADE
) STRICT;
CREATE TABLE branches (
CREATE TABLE tracked_refs (
name TEXT NOT NULL PRIMARY KEY,
hash TEXT NOT NULL,
FOREIGN KEY (hash) REFERENCES commits (hash) ON DELETE CASCADE