diff --git a/migrations/20230805101911_commits.sql b/migrations/20230805101911_commits.sql index 4c215c8..2f76a5f 100644 --- a/migrations/20230805101911_commits.sql +++ b/migrations/20230805101911_commits.sql @@ -5,8 +5,8 @@ CREATE TABLE commits ( ) STRICT; CREATE TABLE commit_links ( - parent TEXT NOT NULL, child TEXT NOT NULL, + parent TEXT NOT NULL, PRIMARY KEY (parent, child), FOREIGN KEY (parent) REFERENCES commits (hash) ON DELETE CASCADE, FOREIGN KEY (child) REFERENCES commits (hash) ON DELETE CASCADE @@ -18,8 +18,5 @@ CREATE TABLE tracked_refs ( FOREIGN KEY (hash) REFERENCES commits (hash) ON DELETE CASCADE ) STRICT; -CREATE INDEX idx_commit_links_child_parent -ON commit_links(child, parent); - CREATE INDEX idx_commit_links_parent_child ON commit_links(parent, child);